atom-git-projects
atom-git-projects copied to clipboard
Performance with large amounts of projects
I have 65 git folders in my ~/git and this plugin seems to load about 15 seconds every time I press ctrl + alt + o.
Perhaps it needs to cache the contents of the projects folder and asynchronously update instead? That way when you ctrl + alt + o and type, you are searching the cached version while it asynchronously updates, and if you leave it open long enough for it to finish, it updates the search with the fresh project listing.
It's made worse by the fact that the whole UI freezes while it's loading.
Same here, I have 197 git projects (wow, that's crazy)
Ditto.
I attempted to do just this with this PR: https://github.com/prrrnd/atom-git-projects/pull/44
Although lately I've noticed that the cache seems to be cleared on every startup. It relies on atom's serialization and deserialization of plugins (https://github.com/prrrnd/atom-git-projects/blob/master/lib/git-projects.coffee#L57). I didn't want to introduce a cache at the filesystem level, or use another way of persisting. Maybe this needs to be looked after again.
At First Awesome Plugin ;). I have the same Problem, and thought project-indexing was fixed. But works not as expected :( #41
@JCCR Another possible solution would be to update asynchronously in the background on startup, that way the cache is hopefully populated by the time it gets used.
- 1 for fixing this
It's annoying even with ~20 projects or less, I'm always waiting that couple of seconds. Any kind of plain cache and this wait could be zero. Huge win.