Repository navigation
Conversation
6 of 13 tasks
trueadm
marked this pull request as ready for review
August 7, 2026 19:29
jonkwheeler
pushed a commit
to jonkwheeler/octane
that referenced
this pull request
Aug 7, 2026
jonkwheeler
pushed a commit
to jonkwheeler/octane
that referenced
this pull request
Aug 7, 2026
4 of 5 tasks
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
.tsrxand.tsx.DocumentFragmentbatching after same-session browser measurements showed 10,000-row direct DOM insertion at 7.05 ms versus 8.65–8.85 ms with fragments; end-to-end fragment variants were 13–18% slower.Same-session production measurements:
The unrelated TodoMVC application is byte-for-byte unchanged after production tree-shaking. Certified row applications retain approximately 399–439 additional gzip bytes in their framework chunks; the existing JSX/TSRX application-size guard remains satisfied.
Part of #611.
Validation
pnpm format:checkpnpm typecheckNODE_OPTIONS=--no-experimental-webstorage pnpm test(1,556 files; 16,829 tests passed).node benchmarks/bench.mjs --quick --ratios js-framework js-framework-reorder signal-favoring(all 12 applicable ratio guards pass).node benchmarks/bench.mjs --quick codegen-size bundle-size.Risk / follow-ups
@empty, indexed/destructured loops, universal renderers, hydration, transitions, adoption, first slot creation, non-array inputs, and lists below 16 rows. Native JSX mapping retains its existing array/species/accessor guard and fallback.Provenance
agent-authored)Note
Medium Risk
Touches core list mounting and reconciliation entry points with many fail-closed guards, but incorrect certification could break DOM identity, hydration, or lifecycle semantics for edge-case lists.
Overview
Adds a narrow fast path for mounting large keyed lists whose item bodies are compiler-proven safe plain HTML host trees, cutting per-row component-render overhead while keeping one direct live-parent DOM insertion per row (no
DocumentFragmentbatching).The compiler introduces
hostMountSafeviaisHostMountSafeTree(allowlisted tags/attrs) and emitsfastForBlock,fastKeyedForBlock, orfastMapSlotinstead of the generic helpers when eligibility holds (production auto-memo, single host root, no refs/controls/components, etc.). The runtime mounts throughmountFastHostItemswhen the slot is empty, arrays have ≥16 items, and hydration/transitions are inactive; otherwise it falls back to existingforBlock/keyedForBlock/mapSlot.Benchmarks extend
run.mjswith untimed Octane gates for direct tbody insertions, survivor identity, events/selection, zero fragment commits, and jitless production call ceilings. Tests add broadFastHost*fixtures covering hydration, suspense, context, refs, controlled inputs, and error rollback.Reviewed by Cursor Bugbot for commit 1d5b3f4. Bugbot is set up for automated code reviews on this repo. Configure here.