-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building CoffeeScript at runtime is slow. #29
Comments
👍, I'd planned to switch to a prepublish step once the API settled down but having speed data makes it more urgent. Hey @jasonkarns, I'm sure you'd prefer to own how we configure this in the build? Ideas?
|
mostly:
On Wed, Sep 30, 2015 at 3:15 PM, Justin Searls notifications@github.com
|
Sounds good. Would you like to take a stab at this and assign yourself or On Wed, Sep 30, 2015 at 3:28 PM Jason Karns notifications@github.com
|
Its impact is roughly 200ms per runtime.
For a baseline, in a file
td-repro.js
I havewhen ran, it gives the output
after an
npm install testdouble
, I replace the contents oftd-repro.js
withand run again, with these results:
But, if I
index.js
(rathernode_modules/testdouble/index.js
)coffee -c node_modules/testdouble/lib/*.coffee node_modules/testdouble/lib/store/*.coffee~
then the times are way down:
From a baseline of ~110ms per run, a library that adds 70-80ms per run is incredible compared to one that adds 250ms.
The text was updated successfully, but these errors were encountered: