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

Automatic snapshots #155

Open
arcanis opened this issue Aug 3, 2022 · 1 comment
Open

Automatic snapshots #155

arcanis opened this issue Aug 3, 2022 · 1 comment

Comments

@arcanis
Copy link
Contributor

arcanis commented Aug 3, 2022

Now that snapshots have been merged, Corepack should leverage them to decrease the package managers boot times - similar to how we currently use v8-compile-cache.

The way I imagine it, instead of running yarn.js, we would check whether yarn-${process.version}.blob exists. If it doesn't, create it (by calling the process.execPath binary with the --build-snapshot flag). Otherwise, spawn the blob.

Package managers will need some explicit support for this to work, as they'll need to embed their CLI logic within setDeserializeMainFunction.

@arcanis
Copy link
Contributor Author

arcanis commented Aug 5, 2022

Seems it's still a little too soon for that (trying to build a snapshot from Yarn)

image

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

No branches or pull requests

1 participant