Open Bug 1536479 Opened 5 years ago Updated 2 years ago

Babel compile should not have a performance penalty

Categories

(DevTools :: Debugger, task, P3)

task

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.

Priority: -- → P3
Type: defect → task

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?

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

Blocks: dbg-70

Note that babel is one thing, but that wouldn't get rid of node execution overhead.

That is reasonable. I think V8 snapshots might do that though. https://github.com/nodejs/node/issues/17058#issuecomment-506381198

Whiteboard: [debugger-mvp]

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

Whiteboard: [debugger-mvp] → [debugger-reserve]
No longer blocks: dbg-70
Whiteboard: [debugger-reserve]

Bug 1461714 was where this build strategy was first implemented, so linking there for reference.

See Also: → node-debugger
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.