Repository navigation
Conversation
Backport the JSON portions of V8 d4966a986bbe, including the parser prerequisite 2990d03d9851, unaligned reads from fc3551409efe and capped Highway tags from 7e56c4c6066f. Omit the general mixed-width string comparison change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Collaborator
|
Review requested:
|
Contributor
|
Welcome to Node.js, and thank you for your first contribution! Before review, please take a moment to read:
Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v26.x backport review: This brings only the JSON parser and stringifier paths from v8/v8@d4966a9 to Node.js 26 V8 implementation. It includes the parser scan (v8/v8@2990d03), unaligned-load fix (v8/v8@fc35514) and JSON portions of the Highway scalar fallback (v8/v8@7e56c4c). It doesn't include the general mixed-width string comparison change. The only other changes are the V8 embedder version bump and one functional mjsunit test for boundaries, escaping, surrogates and rejection of raw control characters.
Known performance tradeoff: On Windows 11 Arm64 matched Node v26.13.1 verification builds showed 2.70x stringify throughput for a 4,096-code-unit unescaped CJK value.
NOTE: A CJK value with frequent quotes, backslashes and newlines instead ran at 0.50x throughput (slower).
No end-to-end HTTP throughput gain was established.
Validation: The new test passes on both the stock and patched v26.13.1 Windows Arm binaries; both modified JSON translation units match the verified sources.