ef4 / ember-browserify

ember-cli addon for easily loading CommonJS packages from npm via browserify.
MIT License
172 stars 28 forks source link

[PERF] Thoughts #54

Closed stefanpenner closed 8 years ago

stefanpenner commented 8 years ago

I intend to implement some of these ideas of the next few days, but I figured I would share my plan in broad strokes:

  1. stub-generator re-walks already walked inputTrees here this.listFiles() would prevent the double FS walk (quite costly)
  2. inputfiles are re-read for stubgeneration, we can compare previous entries and new entries (only requiring a read for files that have changed). this.listEntries() would give us stat information, we could use to quickly see if anything has changed or not.
  3. checksum the outputfile before writing or leaving the existing one if nothing change to prevent downstream invalidations.
stefanpenner commented 8 years ago

stub-generator re-walks already walked inputTrees here this.listFiles() would prevent the double FS walk (quite costly)

fixed: https://github.com/ef4/ember-browserify/pull/75