Repository navigation
feat: enable React Compiler across framework benchmarks - #639
Merged
domgan-oai merged 2 commits intoAug 8, 2026
Merged
Conversation
domgan-oai
marked this pull request as ready for review
August 8, 2026 01:09
trueadm
added a commit
that referenced
this pull request
Aug 8, 2026
Regenerate lockfile-derived parity/evals records after the React Compiler benchmark rollout (#639) and bundle-size reductions (#638). Co-Authored-By: Claude Fable 5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Aug 8, 2026
…ture Follows the #639 rollout: every primary React benchmark builds through the shared benchmarks/react-compiler.mjs preset. The fixture's rows were already hand-memo'd, so the compiler shifts little; drag_nodes moved 1.50x -> 1.89x observed (react's per-frame keyed updates got faster), so its tripwire ceiling is re-curated to 2.5 with a dated note. All 27 ratio guards pass; DOM parity across the four fixtures is unchanged. Co-Authored-By: Claude Fable 5 <[email protected]>
5 tasks done
jonkwheeler
pushed a commit
to jonkwheeler/octane
that referenced
this pull request
Aug 8, 2026
jonkwheeler
pushed a commit
to jonkwheeler/octane
that referenced
this pull request
Aug 8, 2026
jonkwheeler
pushed a commit
to jonkwheeler/octane
that referenced
this pull request
Aug 8, 2026
jonkwheeler
pushed a commit
to jonkwheeler/octane
that referenced
this pull request
Aug 8, 2026
jonkwheeler
pushed a commit
to jonkwheeler/octane
that referenced
this pull request
Aug 8, 2026
trueadm
added a commit
that referenced
this pull request
Aug 8, 2026
* feat(benchmarks): add the svg-dashboard SVG stress suite A hand-rolled-SVG observability dashboard (no chart libraries) rendered byte-identically by octane-tsrx, react, solid, and svelte fixtures (~2,400 elements: 150-node topology with foreignObject labels, 8x5-series charts with gradient defs and SVG <a> legends, sparklines, a createElement icon layer on octane's de-opt path, and a portal tooltip overlay). Twelve timed ops cover path-d/transform churn, the value-identical diff-skip walk, per-commit overhead, SVG class-attribute churn, keyed reconcile inside <svg> with LIS moves, namespace push/pop, SVG portals, descriptor re-diffing, structural rescale, and style/spread updates. The harness md5-gates the vendored shared modules, replays the same ops module in Node and byte-compares the DOM, censuses namespaces (a wrong-namespace path renders nothing and would look faster), verifies keyed survivor identity, cross-hashes a canonical DOM serialization across all four fixtures, and bans layout reads during ops. 27 ratio guards recorded with dated notes; local baseline at 20 iterations; suite exposed through @octanejs/mcp-server (changeset included). Co-Authored-By: Claude Fable 5 <[email protected]> * feat(benchmarks): adopt React Compiler in the svg-dashboard react fixture Follows the #639 rollout: every primary React benchmark builds through the shared benchmarks/react-compiler.mjs preset. The fixture's rows were already hand-memo'd, so the compiler shifts little; drag_nodes moved 1.50x -> 1.89x observed (react's per-frame keyed updates got faster), so its tripwire ceiling is re-curated to 2.5 with a dated note. All 27 ratio guards pass; DOM parity across the four fixtures is unchanged. Co-Authored-By: Claude Fable 5 <[email protected]> * fix(benchmarks): use lazy useState initializers in the octane svg-dashboard fixture Bugbot: the eager useState(initialTopo()) form re-evaluates its argument on every re-render, re-slicing the snapshot row arrays inside timed topo/charts/ui commits — overhead the react fixture's lazy form never pays. Octane's useState accepts the same React-parity lazy initializer; use it in App and Viewport. Baseline re-recorded; 27/27 ratio guards and the compare gate pass (85 ops, 0 regressions). Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
jonkwheeler
pushed a commit
to jonkwheeler/octane
that referenced
this pull request
Aug 8, 2026
leonidaz
pushed a commit
that referenced
this pull request
Aug 9, 2026
* feat: add Solana React binding * refactor(solana-react): stabilize wallet snapshots * fix(solana-react): address preflight review findings * chore(evals): refresh corpus lockfile hashes * Address PR review feedback (#387) - version reactive client snapshots - normalize omitted query options compiler slots * style(solana): format hook-slot fixes * fix(solana): defer reactive subscriptions to consumers * feat(playground): showcase solana client context * fix(solana-react): stabilize derived hook slots * chore(evals): refresh solana playground digest * fix(solana-react): replace clients during render * chore: refresh package inventory * chore: refresh binding parity gaps * chore: refresh binding status inventory * fix(solana-react): keep null request queries idle * style(solana-react): format null query guard * fix(ci): retain trusted Octane peer resolution * fix(solana-react): validate capabilities before cancellation * fix(ci): stabilize merged RainbowKit hydration checks * chore(solana-react): refresh package inventory * fix(solana-react): make package tests cwd-independent (#387) * fix(solana-react): stabilize idle refetch * chore(solana-react): refresh parity gap index * chore(solana-react): refresh bindings status * chore(solana-react): refresh merged inventories * fix(solana-react): treat superseded sign failures as cancellation Check active generation and context before wrapping sign errors as signing-failed. Co-authored-by: Cursor <[email protected]> * fix(website): list solana-react once in Web3 bindings catalog Remove duplicate @octanejs/solana-react entry from AI/data section; Web3 is the correct category per Bugbot review. Co-authored-by: Cursor <[email protected]> * chore(ci): refresh react-parity evidence after main merge Regenerate lockfile hashes and inventory for solana. * perf: add minimal-import bundle reachability budgets (#631) * perf: add minimal-import bundle reachability budgets * fix: register reachability benchmark with MCP server * fix: preserve side-effect-only bootstrap entrypoints (#633) * perf: cache stable renderable regions and prune sync warming (#634) * perf: cache stable renderable regions and prune sync warming * fix: preserve uppercase-prefixed custom hook state * fix(benchmarks): remove js-framework DOM node metrics (#636) * fix(bindings): classify production bundle side effects (#637) * feat: enable React Compiler across framework benchmarks (#639) * perf: reduce core runtime and compiled application bundles (#638) * chore(ci): refresh react-parity evidence after main merge Regenerate lockfile hashes and inventory for solana. * fix(solana-react): stabilize null-source query result identity Cache the idle useRequestQuery result object and update it in place when the underlying TanStack result changes, preserving referential stability across parent re-renders. Co-authored-by: Cursor <[email protected]> * chore(ci): refresh inventories after main merge Keep generated package/binding inventory and eval corpus digests current after merging origin/main into the solana-react binding branch. Co-authored-by: Cursor <[email protected]> * feat(solana-react): add React parity evidence lanes Wire packages/solana-react into the generic react-parity:check path with a vendored @solana/[email protected] pin, pristine/adapted runtime lanes, and repo-authored type probes, while keeping Octane-only conformance outside parity ownership. Co-authored-by: Cursor <[email protected]> * fix(solana-react): expand pristine/adapted parity for query and types Address leonidaz feedback: run useRequestQuery in the pristine suite with per-file dispositions and omission/rename controls, adapt the overlapping cases, and replace repo-authored type probes with upstream __typetests__ lanes plus assertion-group inventories. Co-authored-by: Cursor <[email protected]> * fix(solana-react): prefer reactiveStore over send for Kit sources PendingRpcRequest duck-types expose both APIs; dispatch through reactiveStore().withSignal so getAbortSignal composition matches upstream. Co-authored-by: Cursor <[email protected]> * fix(solana-react): one-for-one adapted parity and expanded type lane Preserve every selected pristine runtime identity in the adapted suite, expand the pristine type lane across wallet/transaction/query typetests with machine-checkable dispositions, and reject thenable ClientProvider clients at mount. Co-authored-by: Cursor <[email protected]> * fix(solana-react): pin pristine-only typetests in type inventory Include every adapted and pristine-only upstream typetest in pristine-types.json so assertion-group drift is caught for wallet, signing, request, and deferred query artifacts. Co-authored-by: Cursor <[email protected]> * fix(ci): refresh vitest parity hashes and format solana-react audit Keep neighbor react-parity manifests aligned after vitest.config.js changed for solana-react lanes, and satisfy Prettier on the new audit file. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Dominic Gannaway <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: domgan-oai <[email protected]>
leonidaz
pushed a commit
that referenced
this pull request
Aug 10, 2026
* docs(packaging): plan CommonJS package conditions * feat(packaging): add CommonJS graph builder * fix(packaging): parse CommonJS graphs with esbuild * feat(octane): publish CommonJS runtime entries * feat(bindings): publish CommonJS runtime graphs * test(packaging): exercise packed CommonJS consumers * chore(release): record CommonJS package conditions * test(packaging): run CommonJS tarball canary * test(packaging): compare ESM and CommonJS parity * fix(review): guard CommonJS output deletion * fix(review): reject lossy CommonJS transforms * feat(packaging): compile TSRX CommonJS graphs * perf(packaging): reuse TSRX compilation work * feat(packages): support callable CommonJS defaults * fix(packages): recognize TSRX CommonJS roots * perf: speed up server-rendered HTML escaping (#629) * perf: skip unchanged conditional keyed rows (#628) * perf: skip unchanged conditional keyed rows * fix: exclude Activity boundaries from keyed row memoization * fix(ci): prevent usehooks hydration timeout * fix(ci): refresh React parity evidence hashes * perf: reuse bounded keyed-reorder scratch storage (#630) * perf: add minimal-import bundle reachability budgets (#631) * perf: add minimal-import bundle reachability budgets * fix: register reachability benchmark with MCP server * fix: preserve side-effect-only bootstrap entrypoints (#633) * perf: cache stable renderable regions and prune sync warming (#634) * perf: cache stable renderable regions and prune sync warming * fix: preserve uppercase-prefixed custom hook state * fix(benchmarks): remove js-framework DOM node metrics (#636) * fix(bindings): classify production bundle side effects (#637) * feat: enable React Compiler across framework benchmarks (#639) * perf: reduce core runtime and compiled application bundles (#638) * Version Packages (#601) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(commonjs): fail closed on authored .tsrx modules Refuse compiling .tsrx into CommonJS packaging output so published packages keep source for consumers to compile. Co-authored-by: Cursor <[email protected]> * fix(commonjs): restore published require export conditions Re-apply the CommonJS require maps for octane and the binding packages after the main merge dropped them. Co-authored-by: Cursor <[email protected]> * fix(commonjs): order require before default and wire binding prepack Put import/require ahead of default in octane publishConfig.exports so Node does not always pick the ESM graph, and run build:cjs from prepack for the binding packages that advertise dist/cjs. Co-authored-by: Cursor <[email protected]> * fix(compiler): discover source packages without a CommonJS build require.resolve failed on prepack-only dist/cjs entries in CI, so Vite source discovery skipped Base UI and nested bindings. Fall back to the installed package manifest when the require target is missing. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: domgan-oai <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Cursor <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 3, 2026
… samples Two quick CI runs of the paired, ~20 ms harness and same-runner A/B runs against the commits that set each guard decided every waiver: - Passing, waiver removed: activity reports, ssr-workerd cold_spawn_to_first_byte, svg-dashboard pan_zoom, memo-wall parent_rerender_equal_A and octane-jsx mount, spa-navigation nav_teardown and nav_mount (no Octane change since #674 on one runner). - Rebaselined: svg-dashboard icon_swap 1.2 -> 1.6, because #983's esbuild minification made React 15% faster while Octane stayed flat. - Confirmed Octane regressions, waiver kept and pointed at the fix: js-framework-reorder rotateb (1.41x per click since #639), memo-wall one_change_B (1.5x) and ctx_through_wall_B (1.44x), and svg-dashboard tooltip_swarm (1.31x since #635). - The rotateb note claimed React moves every survivor; it moves one. A new rotatef guard covers the LIS-vs-lastPlacedIndex differentiator (0.043x). Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 of 4 tasks
trueadm
added a commit
that referenced
this pull request
Oct 3, 2026
…nd re-judge them (#1646) * ci(bench): triage the weekly ratio-guard breaches so new ones show The weekly Bench job (`bench.mjs --quick --ratios`) was red with 81 ratio breaches, 4 suites that wrote no numbers and 4 harness gate failures, so a new breach was invisible. Every item is now a fix or a rebaseline. - Harness drift, fixed. Each harness had stopped producing numbers when runtime source it anchors on changed: - ssr-final-replay: a second suspended loop since 2026-09-29. - root-transactions/contracts: staged-DOM text and attribute journaling since 2026-09-15. - signal-dom-bindings: a second native style Block allocation site since 2026-09-23. - codegen-size: the server runtime's lazy streamed-signals chunk since 2026-09-16. - recursive-context: counted a pure-call annotation and trailing newlines as output growth. - Rebaselined, with numbers in each note: five cross-framework bundle-size ratios and the workerd script-size ratio. The absolute app and server-render budgets are now the ratchet. Lynx's no-worklet byte caps from 2026-08-17 are reset to measured + 32, with the background program pinned exactly. - Fix pending, with dated waivers that expire 2026-10-24, each with an owner task: - three exact counters the revived harnesses exposed (one extra closure per ssrTry, 128 live text reads per 128 unchanged compiled updates, compiled output at 1.295x its source); - Lynx create ratios and the re-entrant transport gate; - superlinear hydrate boundary preparation; - Octane Three versus R3F size and frame dispatch; - two timing regressions near the timer floor; - ten quick-mode timing guards whose samples are noise-bound; - the scoped descriptor shape change. - bench.mjs supports a guard `waiver` ({ reason, expires }). A waived breach prints and does not fail, and fails again once the date passes. HARNESS_FAILURE_ALLOWLIST now also covers a suite whose harness writes no numbers. The budget breaches (57) clear when the budget reset lands. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(benchmarks): pair and lengthen the timing samples behind waived ratio guards Twelve timing guards breached in weekly quick runs without a verdict. Their samples sat near Chromium's 100 µs clock or under two-sample noise, and each target ran its whole block minutes after the other side of its guard. - benchmarks/lib/paired.mjs: rotating per-round visit order and a ~20 ms sample calibration shared by the harnesses below. - js-framework-reorder, memo-wall, svg-dashboard, spa-navigation: every target's page stays open in one browser and each sample round visits all targets; short ops repeat until a sample takes about 20 ms (clicks, hook invocations, op batches, and summed navigation legs). - activity caught-reveal: a sample reveals several independent hidden roots in one window, with the small case revealing eight times as many roots so both cases do equal work; the cases alternate per round. - ssr-workerd: an untimed priming spawn per target, then paired cold-spawn rounds; quick mode runs six rounds instead of two. - bench.yml: a `suites` dispatch input to run selected suites. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(benchmarks): collect garbage before every timed spa-navigation leg The untimed return leg mounts a whole route, and its collection landed inside the next timed teardown: nav_teardown samples ran at 17-45% rme. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(benchmarks): re-judge the twelve waived timing guards with paired samples Two quick CI runs of the paired, ~20 ms harness and same-runner A/B runs against the commits that set each guard decided every waiver: - Passing, waiver removed: activity reports, ssr-workerd cold_spawn_to_first_byte, svg-dashboard pan_zoom, memo-wall parent_rerender_equal_A and octane-jsx mount, spa-navigation nav_teardown and nav_mount (no Octane change since #674 on one runner). - Rebaselined: svg-dashboard icon_swap 1.2 -> 1.6, because #983's esbuild minification made React 15% faster while Octane stayed flat. - Confirmed Octane regressions, waiver kept and pointed at the fix: js-framework-reorder rotateb (1.41x per click since #639), memo-wall one_change_B (1.5x) and ctx_through_wall_B (1.44x), and svg-dashboard tooltip_swarm (1.31x since #635). - The rotateb note claimed React moves every survivor; it moves one. A new rotatef guard covers the LIS-vs-lastPlacedIndex differentiator (0.043x). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(benchmarks): rebaseline spa-navigation nav_mount to its CI baseline The 1.2 ceiling came from a local 0.94x reading. On CI runners #674 itself measures 1.15x and head 1.09-1.16x, so the ceiling left 3% of quick-mode headroom; 1.35 keeps a margin while still catching per-node mount growth. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): drop the three weekly waivers that now have fix PRs The waived guards now have owner PRs: ssr-final-replay try_closures (#1644), root-transactions equal_reads (#1643) and codegen-size gzip compiled/source (#1645). #1645 rebaselines the same codegen-size entry, so this branch no longer edits it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): leave lynx-render to its owner fix The lynx-render transport gate failure and the create_1k/create_10k ratio breaches both trace to #885's JSON-encoded transport and now have an owner fix. Its branch re-notes those two guards, so this branch drops their waivers and the suite's allowlist entry instead of editing the same entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): keep harness failures unwaivable and leave descriptor shapes to their owner Waiving a suite that throws before it writes numbers would hide any crash in that suite, not only the known shape change, and skip all of its guards. The scoped-descriptor-shapes defect has an owner fix in progress. That fix re-pins the harness's expected keys, so narrowing the waiver here would edit the same assertion. HARNESS_FAILURE_ALLOWLIST is empty again, and a thrown suite failure always fails the job. Dated waivers remain only on individual ratio guards. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): leave the Three guards to their owner fixes three-renderer frame_1k_subscribers and the two three-bundle-size ratios have owner PRs (#1651, #1652) that re-note and ratchet those entries, so this branch drops their waivers instead of editing the same entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(benchmarks): point the four kept timing waivers at their attributed fixes rotateb and ctx_through_wall_B clear with #1655 and #1656; one_change_B's per-row remainder and tooltip_swarm's scoped-descriptor accessor reads each have their own fix task. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(benchmarks): point parent_rerender_equal_A's note at its per-commit journal fix Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
4 of 5 tasks
trueadm
added a commit
that referenced
this pull request
Oct 3, 2026
#1646 waived memo-wall one_change_B (octane-tsrx/react, maxRatio 1.4) until the per-row survivor work was fixed. With same-component de-opt survivors taking the memo bail directly, paired ~20 ms samples measured 0.80x, 0.80x and 0.82x across two same-runner runs (the previous code: 1.30-1.41x; #639: 0.97x). 1.1 keeps about 35% headroom while catching a return of the per-row item render. Co-Authored-By: Claude Opus 5.5 <[email protected]>
2 of 5 tasks
trueadm
added a commit
that referenced
this pull request
Oct 3, 2026
…ng its render (#1664) * perf(octane): record event signal authority on the host instead of weak maps #1069 made every module that can receive a signal handle record each native handler's signal authority: the element's owner in one weak map and an "escaped" mark for the scope in another. Keyed rows paid two weak-map insertions per mounted row even with no signals in use. A same-runner paired A/B put prepend100/append100/insertmid100 at 0.48 -> 0.76 ms across #1069. The element's authority now lives in a $$signalOwner property beside its handler slots, journaled and rolled back like before, and the escape mark is a signalTokenEscaped field on Scope/Block with the same retirement truth table. Mounting no longer touches a weak map. bindSignalText also writes a scalar over the Text it already owns directly, skipping bindDirectSignal's policy dispatch; setText still journals the text and the binding bag. That path runs for every compiled text-hole update in such a module (memo-wall context refresh: 0.669 -> 0.622 ms paired). The signal-dom-bindings suite gains a deterministic guard counting weak-map insertions per mounted and inserted handler row (2 on main, 0 now), with dispatch and survivor-identity controls. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(octane): restore keyed survivor indices from the list's shape record #833 made root renders undoable and journaled every keyed survivor's previous itemIndex in updateSurvivor: four journal slots per row on each reorder, removal, or insertion that shifts positions. A same-runner paired A/B put a 1,000-row rotate at 0.050 ms before #833 and 0.071 ms on main. An index moves only when the list's membership or order does, which records the list's shape (journalForSlot) anyway. reconcileKeyed now takes that record before the first survivor index write, and restoreForSlot restores each row's itemIndex from its chain position; a row whose index already differed is kept exactly. The hydration adoption branch, which restores a DOM range instead of a chain, still journals indices per row. Transition journals, which never restored itemIndex, now restore it too. The shape record also builds the key order with one spread and an early-exit comparison instead of an iterator loop that copied the order element by element. The root-transactions suite gains reorders.mjs, which counts root-journal slots per row for rotate/reverse/remove-first/insert-first (4 on main, 0 now). A held-root test pins that index-reading rows render their positions after a held reorder retries; it fails when the index restore is removed. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(bench): observe stable event authority on the host property The stable-event-authority work observer counted authority writes through WeakMap.prototype.set. Authority now lives in each host's $$signalOwner property, so the observer counts writes through an Element.prototype accessor instead. The expected counts are unchanged (400 mount, 0 retained, 0 changed capture), and dropping the runtime's unchanged-authority skip still fails the retained-write assertion. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(octane): trim the keyed index journal to +51 raw / +10 gzip bytes The bench report on this PR measured +250 raw / +90 gzip bytes in every bundle with a keyed list. journalForSlot now returns false, so the call sites clear their pending flag without a helper. Rollback restores each row's index from its chain position without a side map, since every reconcile leaves a row's index equal to its position and the record is taken before the first survivor index write. The hydration-adoption branch does not restore a chain at all (its rows are fresh), so it no longer journals indices per row either. js-framework octane-tsrx bundle against main: +51 raw / +10 gzip (was +251 / +51). The held-root index test still fails when the restore is removed; the reorder guard still reads 0 slots per row. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(octane): keep row indices across a hydrating keyed rollback The hydration-adoption branch of journalForSlot restores a DOM range, not a chain, so the trim that dropped its per-row index entries left an existing row's itemIndex on the aborted position after a hydrating render reordered the list and rolled back. Journal each existing row's index there again, before reconcileKeyed moves any of them. Bundle cost against main is now +130 raw / +31 gzip for js-framework octane-tsrx. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(octane): update a same-component de-opt list item without entering its render A value-position list rebuilt by createElement (memo-wall wall B, every @octanejs binding) hands back a fresh descriptor per row. Each surviving row entered its item render (renderBlock, deoptItemBody, a nested childSlot) only to reach the memo bail of the component already mounted there, and the root journal recorded the item's inputs and render for every row. updateSurvivor now hands a plain de-opt item to updateDeoptComponent, which takes that nested childSlot's same-component branch directly, in the item's scope and with the priority its render would inherit: the memo bail, the identical-props bail, or a journaled props update and render of the existing component Block. A bail leaves the item's committed descriptor in place. Hydration, signal owners, native reads, non-root captures, unsettled items and every other child regime keep the ordinary item render. The function reaches updateSurvivor through ForSlot.itemUpdate, stamped in renderPreparedChildList, so compiled @for bundles never retain the descriptor renderer. Per bailed row (new memo-wall survivor-work guard, jitless precise calls): 48 calls and 8 root-journal slots before, 26 and 0 now. One __oneChangeB on the memo-wall production build: 46,138 calls before, 24,138 now. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(octane): point childSlot's same-component branch at its de-opt item twin Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(octane): drop de-opt item fast-path checks its component Block already implies An item whose nested slot holds a component Block never has recorded $$ctxReads (it is neither memo nor armed) and never also holds a portal. Its end marker and a former body-function flag do not change the same-component branch it mirrors. A non-object item fails the kind check without the separate null and typeof tests. -100 raw / -17 gzip in bundles that include the descriptor renderer. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): drop the one_change_B waiver and tighten its guard to 1.1 #1646 waived memo-wall one_change_B (octane-tsrx/react, maxRatio 1.4) until the per-row survivor work was fixed. With same-component de-opt survivors taking the memo bail directly, paired ~20 ms samples measured 0.80x, 0.80x and 0.82x across two same-runner runs (the previous code: 1.30-1.41x; #639: 0.97x). 1.1 keeps about 35% headroom while catching a return of the per-row item render. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(octane): carry the de-opt survivor update in ForSlot.plainDeopt The plain de-opt flag now holds the list's survivor update itself (updateDeoptComponent, or null), so ForSlot needs no second field and the compiled @for path that shares updateSurvivor pays only one optional call. updateDeoptComponent writes the survivor's index. The js-framework rows app (compiled lists only) now grows +20 raw / +11 gzip over main, within the committed +32 budget, instead of +74 / +29. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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
Why
Changes
Validation
pnpm syncpnpm format:checkpnpm typecheckNODE_OPTIONS=--no-webstorage pnpm test(16,864 tests passed; nine unrelated differential tests timed out under full-suite parallel load, and one unrelated worker start timed out)NODE_OPTIONS=--no-webstorage pnpm exec vitest run --project hook-form-differential --project styled-components-differential --project recharts --project rspack-plugin --maxWorkers=1 --testTimeout=90000(all 12 affected files and 120 tests pass in isolation)pnpm --dir website buildpnpm --dir website typecheckpnpm exec vitest run --project website-unit website/tests/benchmark-explorer.test.ts website/tests/bench-bars.test.ts website/tests/smoke.test.ts --silent=passed-only(36 passing tests, including upstream's new DOM-metric regression)node benchmarks/bench.mjs --record --ratios js-framework todomvc chat-stream js-framework-reorder dbmon effectful-list memo-wall recursive-context signal-favoring portal-swarm async-waterfall news streaming-ssr bundle-size ssr-throughputmemo-wall,signal-favoring,bundle-size, andjs-frameworkafter incorporating two newly merged upstream benchmark/performance changes.react/compiler-runtime.The full
--record --ratioscommand records every suite successfully. The final checked-in baselines expose 16 unrelated Octane-only guard failures: stale non-React bundle-size thresholds and Octane dialect timings. Currentmainindependently has 16 failing Octane-only baseline guards; no React guard fails on this branch. The existing, documented Ripple reorder waiver also remains unchanged.Risk / follow-ups
Provenance
agent-authored)Note
Low Risk
Benchmark harness, Vite plugin wiring, and regenerated baseline JSON only; no production app or auth paths. Main risk is published numbers and ratio guards drifting until baselines are accepted on the recording machine.
Overview
Primary React benchmark fixtures now run through React Compiler 1.0 via a shared
react-compiler.mjsVite integration, so browser, SSR, Worker, and.tsrxReact paths are compiled consistently—not only client JSX.The benchmarks README documents this policy: compiled React is the default comparison, and memo-wall keeps a separate uncompiled control. Example Vite configs (e.g. async-composition, async-waterfall) add
reactCompiler()beside@vitejs/plugin-react.Local baselines under
benchmarks/baselines/local/are regenerated for the affected suites. React timings shift (often faster on streaming and list work; e.g.effectful-listupdate_nodepsdrops sharply). React app bundle sizes rise where compiler output is emitted, while framework chunks stay roughly flat—reflected inbundle-size.jsonand related suite JSON.Reviewed by Cursor Bugbot for commit 5ac9932. Bugbot is set up for automated code reviews on this repo. Configure here.