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

feat: allow custom v8 snapshots to be used in the main process and the default snapshot in the renderer process #35695

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Sep 15, 2022

Backport of #35266

See that PR for details.

Notes: Added LoadBrowserProcessSpecificV8Snapshot as a new fuse that will let the main/browser process load its v8 snapshot from a file at browser_v8_context_snapshot.bin. Any other process will use the same path as is used today.

@trop trop bot requested review from a team as code owners September 15, 2022 20:21
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Sep 15, 2022
@trop trop bot added 21-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Sep 15, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Sep 15, 2022
@ryanthemanuel
Copy link
Contributor

@ckerr and @codebytere, I'm new to the patch back process. Is there anything that I need to do to get this in? Or will someone from your end take care of what needs to be taken care of? Thanks!

Copy link
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

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

Approved on behalf of @electron/wg-releases

@VerteDinde
Copy link
Member

@ryanthemanuel Backports just need to be approved by our Releases WG, which yours was yesterday! Would you mind rebasing this PR against latest 21-x-y, in order to kick off CircleCI? 🙂

@ryanthemanuel
Copy link
Contributor

Hi @VerteDinde thanks for the approval. I'd update the branch, but I don't have write privs to the repo.

ryanthemanuel and others added 2 commits September 23, 2022 11:28
…e default snapshot in the renderer process (#35266)

* Updates to allow for using a custom v8 snapshot file name

* Allow using a custom v8 snapshot file name

* Fix up patch due to merge

* Use fuse to set up custom v8 snapshot file in browser process

* Refactor to use delegate instead of command line parameter

* Refactoring

* Update due to merge

* PR comments

* Rename patch

* Rename patch
@VerteDinde VerteDinde force-pushed the trop/21-x-y-bp-feat-allow-custom-v8-snapshots-to-be-used-in-the-main-process-and-the-default-snapshot-in-the-renderer-process-1663273306165 branch from aeec599 to 55f7404 Compare September 23, 2022 18:28
@VerteDinde VerteDinde merged commit 9631cee into 21-x-y Sep 24, 2022
@VerteDinde VerteDinde deleted the trop/21-x-y-bp-feat-allow-custom-v8-snapshots-to-be-used-in-the-main-process-and-the-default-snapshot-in-the-renderer-process-1663273306165 branch September 24, 2022 19:31
@release-clerk
Copy link

release-clerk bot commented Sep 24, 2022

Release Notes Persisted

Added LoadBrowserProcessSpecificV8Snapshot as a new fuse that will let the main/browser process load its v8 snapshot from a file at browser_v8_context_snapshot.bin. Any other process will use the same path as is used today.

@VerteDinde
Copy link
Member

@ryanthemanuel Done - thanks again for this fix, it's very appreciated! 🙇‍♀️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
21-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants