atom-git-projects icon indicating copy to clipboard operation
atom-git-projects copied to clipboard

Performance with large amounts of projects

Open stephen304 opened this issue 10 years ago • 6 comments

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.

stephen304 avatar Aug 17 '15 19:08 stephen304

Same here, I have 197 git projects (wow, that's crazy)

stubailo avatar Aug 28 '15 01:08 stubailo

Ditto.

fakewaffle avatar Sep 03 '15 20:09 fakewaffle

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.

jccr avatar Sep 22 '15 04:09 jccr

At First Awesome Plugin ;). I have the same Problem, and thought project-indexing was fixed. But works not as expected :( #41

stephanfriedrich avatar Mar 02 '16 13:03 stephanfriedrich

@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.

stephen304 avatar Mar 02 '16 13:03 stephen304

  • 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.

rubencaro avatar May 14 '16 05:05 rubencaro