Hi,
Would quickjs-ng be interested in supporting snapshot and restore for a JSRuntime or JSContext?
The idea is to save the state of a JavaScript environment and later restore it, instead of recreating and reinitializing the environment from scratch.
V8 supports custom startup snapshots, and Node.js also provides startup snapshot functionality. Snapshot/restore support in quickjs-ng could be useful for embedders as well as other environments that need fast startup or the ability to preserve and restore JavaScript runtime state.
Possible use cases include:
- fast startup from a pre-initialized environment
- checkpointing and restoring long-running workloads
- suspending and resuming JavaScript environments
- quickly creating or resetting isolated JavaScript environments
Would this kind of feature be within the scope of quickjs-ng?
Hi,
Would quickjs-ng be interested in supporting snapshot and restore for a
JSRuntimeorJSContext?The idea is to save the state of a JavaScript environment and later restore it, instead of recreating and reinitializing the environment from scratch.
V8 supports custom startup snapshots, and Node.js also provides startup snapshot functionality. Snapshot/restore support in quickjs-ng could be useful for embedders as well as other environments that need fast startup or the ability to preserve and restore JavaScript runtime state.
Possible use cases include:
Would this kind of feature be within the scope of quickjs-ng?