Babel compile should not have a performance penalty
Categories
(DevTools :: Debugger, task, P3)
Tracking
(Not tracked)
People
(Reporter: jlast, Unassigned)
References
(Blocks 2 open bugs)
Details
Currently there is a per-directory cost for compiling, it would be nice if the performance were linear w/ respect to babel and not Node Startup time.
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
As an intermediate step, I wonder if it would be worth considering https://www.npmjs.com/package/v8-compile-cache as a means to avoid recompiling the Babel file every time node runs?
Reporter | ||
Comment 2•6 years ago
|
||
v8 snapshots are enabled in node 12.5.0, seems likely a good way to speed up builds once we're willing to jump to node 12.5.0 https://github.com/nodejs/node/issues/17058#issuecomment-506381198
- NPM library available now https://www.npmjs.com/package/v8-compile-cache
Comment 3•6 years ago
|
||
Note that babel is one thing, but that wouldn't get rid of node execution overhead.
Reporter | ||
Comment 4•6 years ago
|
||
That is reasonable. I think V8 snapshots might do that though. https://github.com/nodejs/node/issues/17058#issuecomment-506381198
Updated•6 years ago
|
Comment 5•6 years ago
|
||
In general, it looks like V8 snapshots appear to help a bit now, and there's a bunch of headroom to win more: https://github.com/nodejs/node/issues/17058#issuecomment-508596356
Updated•6 years ago
|
Comment 6•5 years ago
|
||
Bug 1461714 was where this build strategy was first implemented, so linking there for reference.
Updated•2 years ago
|
Description
•