tvooo / sublime-grunt

Moved to https://github.com/sptndc/sublime-grunt
296 stars 35 forks source link

Cache grunt tasks when Gruntfile.js isn't modified #35

Closed mathroc closed 10 years ago

mathroc commented 11 years ago

Hi,

this plugin is very useful but unfortunately it's a bit slow (at least on my system and with the Gruntfile.js-s I'm using) : the tasks list takes 2~5 seconds to appear. When using sublime that's feel very long

would it be possible to store tasks list on memory and only reload it if the Gruntfile.js changed? (timestamp or file md5)

tvooo commented 11 years ago

Yes, that is a very good idea, which I also thought about already. The waiting time is actually caused by grunt itself (the plugin uses grunt to expose all the tasks it has available). I think caching the tasks is the only way to reduce this waiting time.

That goes on my to do list.

VirtueMe commented 10 years ago

The solution implemented now will take care of this. First time load time will still take a long time, but sequential commands will be fast.

The solution isn't completely perfect and we might gain some performance by doing the caching behind the scenes. We should consider moving the cache db to the user settings folder. But for now I think this issue is solved.