You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8b7df9b
Browse filesBrowse the repository at this point in the historyBrowse files
green_threads: don't copy the runtime's sources into snapshots
V8 serializes external strings as ordinary strings unless their
resources are external references. The snapshots of green threads only
had the runtime's callbacks as external references, so they contained
copies of the sources of its builtins, about 65 KB, which every green
thread deserialized into its heap.
Add Node.js' external references, which include the sources of all
builtins, so that the snapshots refer to the sources in the binary.
This makes each green thread use 60 KB less memory (1.34 MB rather than
1.40 in a release build) and the startup snapshots 65 KB smaller.
Assisted-by: Claude Opus 5.5
Signed-off-by: James M Snell <jasnell@gmail.com>
0 commit comments