Skip to content

Feature request: snapshot and restore support #1712

Description

@yanjiew1

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions