Repository navigation
perf(octane): bring JSX keyed-list rendering closer to TSRX - #363
Merged
trueadm merged 10 commits intoJul 29, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
10 tasks done
domgan-oai
force-pushed
the
fix/tsx-jsx-runtime-overhead
branch
from
July 28, 2026 23:31
41ca89c to
bf5aaec
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit fe085cc. Configure here.
This branch was previously deployed
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.

Summary
.mapisArray.prototype.map.134x faster) and single-row updates from approximately 0.166 ms to 0.046 ms (3.6x faster).9a5c0e2d42e0afb486ebd8d8be52ae1f088abb90, including its scoped JSX, deep-SSR, lazy child-accessor, dynamic-fragment, and i18next compatibility fixes.Implementation
Array.prototype.map; evaluate the receiver and method once, then dispatch exotic/custom/overridden/subclass/species/sparse/accessor cases through the original method with its original receiver.Symbol.specieseffects, lexicalthis/arguments, context invalidation, server rendering, hydration identity, foreign DOM ownership, and transitions between native and custom receivers.Validation
octane,octane-prod,docusaurus,i18next, andi18next-ssr: 790 files / 10,322 tests passed (./node_modules/.bin/vitest run --project octane --project octane-prod --project docusaurus --project i18next --project i18next-ssr --reporter=dot).node node_modules/prettier/bin/prettier.cjs --check ../node_modules/.bin/tsgo --noEmit -p packages/octane/tsconfig.json./node_modules/.bin/tsgo --noEmit -p packages/octane/typetests/tsconfig.jsonnode scripts/check-changesets.jsnode scripts/check-test-markers.mjsnode scripts/check-tsrx-module-decls.mjsIntegration
Depends on #361. Its commits currently appear in this PR while #361 is open; once #361 merges, the comparison collapses to this single focused performance commit. Preserve #361's directive-aware return lowering, lazy scoped descriptors, dynamic fragment classifier/i18next compatibility, and deep-SSR replay behavior when integrating.
Note
High Risk
Changes core compiler lowering and client/server reconciliation for JSX lists; incorrect guarding or keyed reuse would cause subtle render bugs, though behavior is heavily regression-tested.
Overview
Returned JSX keyed lists now participate in the same purity, whole-list autoMemo, and per-key survivor reuse as TSRX
@for, while keeping the normal return-descriptor wrapper and JSX children semantics.Eligible
{items.map(...)}lowers through a guarded synthetic loop: receiver andmapare evaluated once, thenmapSlotchecks for a dense nativeArray.prototype.mapbefore emitting compiled keyed reconciliation; exotic receivers, sparse arrays, extra arguments, lexicalthis/argumentsin callbacks, and overriddenmapstay on ordinary dispatch. Return-JSX components get component-local capture analysis so list regions can be memoized; SSR mirrors the same branch viamapSlot+ssrChild.Runtime adds client/server
mapSlot, extendschildSlotfor compiled map bodies (including native↔custom transitions, component rows, hydration adoption), and small scoped-children fixes for providers.Benchmarks/docs: memo-wall README and
work.mjsgainWORK_DIALECT=jsx; wall-B expectations reflect cached helper output;ratios.jsontightens JSX vs TSRX ceilings (e.g. equal parent rerender 600→6). Largeauto-memo.test.tscoverage for maps, hydration, and edge cases. Patch changeset foroctane.Reviewed by Cursor Bugbot for commit bff72b4. Bugbot is set up for automated code reviews on this repo. Configure here.