Skip to content

[v26.x] deps: backport V8 two-byte JSON scanning - #67834

Draft
marcpems wants to merge 1 commit into
nodejs:v26.x-stagingfrom
marcpems:v26-json-simd
Draft

marcpems wants to merge 1 commit into
nodejs:v26.x-stagingfrom
marcpems:v26-json-simd

Conversation

@marcpems

@marcpems marcpems commented Nov 27, 2026 •

Copy link
Copy Markdown

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.

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>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/security-wg
  • @nodejs/v8-update

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to Node.js builds or CI infrastructure. needs-ci PRs that need a full CI run. v26.x Issues that can be reproduced on v26.x or PRs targeting the v26.x-staging branch. v8 engine Issues and PRs related to the V8 dependency. labels Nov 27, 2026
@github-actions

Copy link
Copy Markdown
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.

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

Labels

build Issues and PRs related to Node.js builds or CI infrastructure. needs-ci PRs that need a full CI run. v8 engine Issues and PRs related to the V8 dependency. v26.x Issues that can be reproduced on v26.x or PRs targeting the v26.x-staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants