Closed mroderick closed 8 years ago
So far I have two problems with this
node_modules
into source control might not be happy with an extra file appearing and changing (which includes hardcoded paths, which will fail on other people's machines as per above point)
TL;DR Use
cache-require-paths
to make Buster.JS start faster, ~700ms faster on my machine.Cache node's
require
lookups for considerable speedup.To verify
Measure time to run tests with
time
in a buster dependent projectCheckout this branch and use
npm link
to make a buster dependent project use this version of Buster.Repeat the time measurement a couple of times (first succesful one writes the
.cache-require-paths.json
file).Calculate any improvement over current Buster.
Results
On my machine with a small project running tests only in node
Speedup:
1969 - 1254 = 715ms
(caveats: on my machine, in my project, using
node@0.10
, today)I think the difference is significant enough to add this dependency.