Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(runtime): manual serialization of bootstrap data #18448

Merged

Conversation

bartlomieju
Copy link
Member

This commit changes how data required to bootstrap main and worker runtime
is serialized. Instead of relying on serde_v8 and using JSON object, we're doing
manual serialization to a "v8::Array". This limits number of V8 strings that need
to be serialized by 16. It also made it clear that some data could be obtained during
snapshotting instead of during bootstrap.

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bartlomieju bartlomieju merged commit 795ecfa into denoland:main Mar 28, 2023
@bartlomieju bartlomieju deleted the worker_bootstrap_manual_serialization branch March 28, 2023 08:27
mmastrac pushed a commit that referenced this pull request Mar 31, 2023
This commit changes how data required to bootstrap main and worker
runtime is serialized. 

Instead of relying on serde_v8 and using JSON object,
we're doing manual serialization to a "v8::Array". This limits number 
of V8 strings that need to be serialized by 16. 

It also made it clear that some data could be obtained during
snapshotting instead of during bootstrap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants