Giter Site home page Giter Site logo

Slow to complete with large list about psfzf HOT 4 OPEN

glucas avatar glucas commented on August 18, 2024 2
Slow to complete with large list

from psfzf.

Comments (4)

stinos avatar stinos commented on August 18, 2024 1

I've got little experience with both fzf and PSFzf so I'm not sure how expected this is, but it doesn't seem right on the surface

It is expected, because of a couple of reasons. I'm briefly touching on the subject here (3rd bullet point): https://github.com/stinos/PsFzfLite#rationale-and-helper-functions. In short: fzf uses pretty fast multithreaded file walking under the hood whereas (depending on what exactly is being searched, IIRC) PsFzf falls back to Powershell or cmd-based dir-like functions which are a lot slower. Plus fzfz filters more items out. And on top of that there's overhead from piping items around in PS.

from psfzf.

kelleyma49 avatar kelleyma49 commented on August 18, 2024

I can recreate this is by calling Invoke-Fzf directly. Ctrl+t doesn't seem to exhibit this behavior.

I've seen cases in the past where Ctrl+c don't bubble up to Powershell, but I haven't been able to figure out why. I'll continue to investigate.

from psfzf.

redactedscribe avatar redactedscribe commented on August 18, 2024

invoke-Fzf vs Ctrl+T: The former is still slow compared to the latter. I've got little experience with both fzf and PSFzf so I'm not sure how expected this is, but it doesn't seem right on the surface.

From a root folder on one of my drives:
invoke-Fzf: 8 seconds, returns 305k items.
Ctrl+T: ~1 second, returns 279k items.

fzf 0.37.0
PSFzf 2.5.16
PowerShell 7.3.2
Windows 11 22H2

from psfzf.

redactedscribe avatar redactedscribe commented on August 18, 2024

It is expected, because of a couple of reasons. I'm briefly touching on the subject here (3rd bullet point): https://github.com/stinos/PsFzfLite#rationale-and-helper-functions.

Thanks for the explanation and the link to your repo. I'm just testing PsFzfLite and it does perform better in the case that I outlined. Looks like I'll be using that instead.

from psfzf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.