browserify / watchify

watch mode for browserify builds
Other
1.79k stars 203 forks source link

Restarts are slow #251

Closed greim closed 9 years ago

greim commented 9 years ago

Restarting my node process with watchify is slow, because I'm generating lots of bundles. Is it possible to have it store ASTs and/or compiled file strings in some kind process-external cache? Maybe something I can implement/override for the caching piece, in order to store in redis or whatever rather than in memory? Or does this exist already and I just missed it? Thanks.

zertosh commented 9 years ago

You can implement another caching strategy same way watchify implements an in-memory cache

royriojas commented 9 years ago

@greim you can give it a try to persistify which implements a cache that can be persisted to disk, reducing the time for builds. It is a wrapper over watchify/browserify, so the cli commands should be interchangeable.

greim commented 9 years ago

@royriojas - Thanks!