import-js / eslint-plugin-import

ESLint plugin with rules that help validate proper imports.
MIT License
5.54k stars 1.57k forks source link

cache warmer #149

Closed benmosher closed 8 years ago

benmosher commented 8 years ago

Should theoretically cut time by 25% or so by capturing exports while linting; this avoids the second parse operation for files that have already been linted that are then referenced from others.

might be simpler to just move toward an FS cache implementation of the export map since that will be needed anyway

benmosher commented 8 years ago

For the tests, out of 983ms:

read: 3.450444ms parse: 99.025113ms full: 159.063341ms

So reading is inconsequential, and parsing takes 10% of the time, and export collection is 15%.

This is probably not a great sample, but does imply that parsing is a decent chunk of the work.

benmosher commented 8 years ago

nvm on this, memo-parser is a more complete solution