jgoux
jgouxโ€ข2w ago

Userland V8 snapshots

Hello Deno community ๐Ÿ‘‹, Is there any way to take a v8 snapshot of a script using Deno (similar to node's --build-snapshot). I'm interested in using deno for this because of this PR: https://github.com/denoland/deno/pull/17460 Node.js snapshots doesn't support ES modules. ๐Ÿ™‚ My goal is to speed up my script startup time which makes heavy operations during its initialization.
GitHub
feat: ES module snapshotting by crowlKats ยท Pull Request #17460 ยท d...
This commit adds support for snapshotting ES modules. This is done by adding an ability to serialize and deserialize a "ModuleMap" and attach it to the snapshot, using "a...
1 Reply
bartlomieju
bartlomiejuโ€ข2w ago
No, we don't support user land snapshots right now