Title: Avoid copying file-backed V8 snapshot blobs during startup · Issue #67600 · nodejs/node · GitHub
Open Graph Title: Avoid copying file-backed V8 snapshot blobs during startup · Issue #67600 · nodejs/node
X Title: Avoid copying file-backed V8 snapshot blobs during startup · Issue #67600 · nodejs/node
Description: Node's --snapshot-blob path currently copies the V8 payload while reading a snapshot file in SnapshotData::FromFile. For large snapshots, that adds startup copying and increases peak memory. I have a prototype on the vsl-node-snapshot-la...
Open Graph Description: Node's --snapshot-blob path currently copies the V8 payload while reading a snapshot file in SnapshotData::FromFile. For large snapshots, that adds startup copying and increases peak memory. I have...
X Description: Node's --snapshot-blob path currently copies the V8 payload while reading a snapshot file in SnapshotData::FromFile. For large snapshots, that adds startup copying and increases peak memory. I ...
Opengraph URL: https://github.com/nodejs/node/issues/67600
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Avoid copying file-backed V8 snapshot blobs during startup","articleBody":"Node's [`--snapshot-blob`](https://nodejs.org/api/cli.html#--snapshot-blobpath) path currently copies the V8 payload while reading a snapshot file in [`SnapshotData::FromFile`](https://github.com/nodejs/node/blob/main/src/node_snapshotable.cc#L652). For large snapshots, that adds startup copying and increases peak memory.\n\nI have a prototype on [the `vsl-node-snapshot-launcher` fork branch](https://github.com/jdalton/node/tree/vsl-node-snapshot-launcher). It keeps the file buffer alive on `SnapshotData` and gives V8 a non-owning view of the existing bytes, while retaining Node's current snapshot validation and error handling. Would this ownership approach fit Node's snapshot loading model?\n\n\u003cdetails>\u003csummary>Prototype and validation\u003c/summary>\n\nThe branch changes `SnapshotData::FromFile` to retain the file bytes for the lifetime of the V8 startup data and avoid making a second copy of the V8 payload.\n\nNo Node build or tests have been run yet.\n\n\u003c/details>\n","author":{"url":"https://github.com/jdalton","@type":"Person","name":"jdalton"},"datePublished":"2026-11-19T06:37:27Z","url":"https://github.com/nodejs/node/issues/67600"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:952fa99f-7e59-e053-40c0-daace45f139d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D9C:6AD3D:3B9A13:4E35E4:6B06199D |
| html-safe-nonce | 315a55ecb41d000847b6fd7664c0f27890808a3e84a4bd4d3e0ebf1137fb4b28 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDlDOjZBRDNEOjNCOUExMzo0RTM1RTQ6NkIwNjE5OUQiLCJ2aXNpdG9yX2lkIjoiMTI3NzYxNjkwMTA2NTE1MjkyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f2ad32f070d7a166b59b2785373988264c9568bbd5223246522cc53a59fb400b |
| hovercard-subject-tag | issue:6483946345 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/67600/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50a4688e1d793edcfc350430aebcb913ed031501a98304c91909af771ec63367/nodejs/node/issues/67600 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50a4688e1d793edcfc350430aebcb913ed031501a98304c91909af771ec63367/nodejs/node/issues/67600 |
| og:image:alt | Node's --snapshot-blob path currently copies the V8 payload while reading a snapshot file in SnapshotData::FromFile. For large snapshots, that adds startup copying and increases peak memory. I have... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jdalton |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width