Skip to content

perf: enable V8 builtins PGO#50573

Merged
VerteDinde merged 3 commits into42-x-yfrom
trop/42-x-y-bp-build-enable-v8-builtins-pgo-1774857120608
Mar 30, 2026
Merged

perf: enable V8 builtins PGO#50573
VerteDinde merged 3 commits into42-x-yfrom
trop/42-x-y-bp-build-enable-v8-builtins-pgo-1774857120608

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop Bot commented Mar 30, 2026

Backport of #50416

See that PR for details.

Notes: Enabled profile-guided optimization for V8 builtins in release builds, improving JavaScript builtin performance (Array, String, RegExp, etc.).

trop Bot and others added 2 commits March 30, 2026 07:52
Removes the gn arg that disabled V8 builtins profile-guided optimization
and adds a V8 patch to warn instead of abort when the builtin PGO profile
data does not match. Also strips the PGO-related flags from the generated
mksnapshot_args so they are not passed through to downstream mksnapshot
invocations.

Co-authored-by: Sam Attard <sattard@anthropic.com>
Addresses review feedback: the v8_enable_javascript_promise_hooks flag
is set to support Node.js async_hooks, not used directly by Electron.

Co-authored-by: Sam Attard <sattard@anthropic.com>
@trop trop Bot requested review from a team as code owners March 30, 2026 07:52
@trop trop Bot requested review from a team and MarshallOfSound March 30, 2026 07:52
@trop trop Bot mentioned this pull request Mar 30, 2026
3 tasks
@trop trop Bot added 42-x-y backport This is a backport PR semver/none labels Mar 30, 2026
@MarshallOfSound MarshallOfSound added the semver/patch backwards-compatible bug fixes label Mar 30, 2026
@MarshallOfSound MarshallOfSound changed the title build: enable V8 builtins PGO perf: enable V8 builtins PGO Mar 30, 2026
@VerteDinde VerteDinde merged commit d2e0d19 into 42-x-y Mar 30, 2026
64 checks passed
@VerteDinde VerteDinde deleted the trop/42-x-y-bp-build-enable-v8-builtins-pgo-1774857120608 branch March 30, 2026 15:33
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented Mar 30, 2026

Release Notes Persisted

Enabled profile-guided optimization for V8 builtins in release builds, improving JavaScript builtin performance (Array, String, RegExp, etc.).

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

Labels

42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants