atom / fuzzy-finder

Find and open files quickly
MIT License
275 stars 138 forks source link

Slow startup for large projects #271

Closed antelle closed 5 years ago

antelle commented 7 years ago

Each time you open a project and bring up fuzzy-finder, it shows 'Indexing...' for several seconds. For large projects it's quite annoying. Suggested solution: save per-project caches after reindex and load them on startup, delete old caches. I've implemented it in my fork here and can make a pull request, if this idea is welcome. On my project with ≈50k files, fuzzy finder can be used immediately after startup and it saves time.

50Wliu commented 7 years ago

It definitely seems feasible. A PR would be nice, though I can't guarantee that we'll end up going with that solution in the end.

eeejay commented 7 years ago

I hack on the Gecko, and there are almost 200k files in the source tree. It takes fuzzy finder 17 seconds to index the project. That would be bad enough if it did it the first time you opened it, but it also does it every time you use the finder after refocusing the window.

I made a few changes (pull #301) to optimize how the project gets indexed. There is a 40x speedup, now the Gecko tree gets indexed in half a second.

Caching would be a good idea too, or at least incremental re-indexing.

jamesona commented 7 years ago

This would be HUGE for myself, and my team. Our company handles a lot of very wide repos, and the sum of the projects fuzzy-finder tries to index ends up being right around 1M inodes.

arielnoname commented 6 years ago

anything on this? keeps happening. even with small projects

alxtz commented 6 years ago

@arielnoname if you have file-icon installed, checkout this issue for the root cause https://github.com/atom/fuzzy-finder/issues/269

mzhaase commented 6 years ago

Is there any progress on this? Happens even without file-icon. Some cache option would be nice.

rafeca commented 5 years ago

Hey folks, this will get substantially improved by https://github.com/atom/fuzzy-finder/pull/369

rafeca commented 5 years ago

Now that https://github.com/atom/fuzzy-finder/pull/369 got merged, it's time to close this issue 😄