Repository navigation
Conversation
Transported full-root attempts were categorically excluded from retained-subtree adoption, so every background render re-ran all keyed children even when their component, props, and consumed contexts were unchanged - on the Lynx table benchmark a 2-row select re-rendered all 10k rows. A transported full-root commit is still acknowledged against one whole-tree version, adoption emits no commands for retained ranges, and the accepted listener table already retires only re-staged hosts, so the local-driver adoption gate extends to transported roots unchanged. Regression tests pin adoption, context refresh, retained-listener dispatch, and keyed reorder of adopted items over a real MessageChannel transport. The lynx-table rig gains a profile-only Row render-breadth counter, a swap op, and 8 ratio guards; select@1k renders drop 1000 -> 2 and swap renders 0 while every wire counter stays byte-identical. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013br9KPN1riTSP683xEvUuU
This was referenced Aug 9, 2026
14 of 17 tasks
Owner
Author
|
Conclusion: close as landed upstream. The adoption fast path is represented by octanejs/octane PR 696, so this historical branch should not be merged separately. |
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.
Closes #4. Stacked on #10 ([lynx-perf 2], base
lynx/commit-pacing), which stacks on #1.Summary
Rowcomponents instead of 10,000, and a far swap renders 0.Why
#587landed generic retained-subtree adoption at theuniversalComponentreconcile boundary two days ago, butretainEligiblecategorically excluded transported roots, so the whole dual-thread Lynx path never bailed. No new machinery (and no compiler assist) was needed — the exclusion was the entire defect.Object.isshallow-equality (React memo semantics), not per-entrysameUniversalHostPropValue. The compiled@forshape passes identity-stable rows anduseCallback-stable handlers, so identity comparison already bails; value-comparison would loosen React parity for mutated-in-place objects. Measured result meets the acceptance floor exactly, so the looser predicate stays a possible follow-up, not a need.compile-universal.jschange. The adoption boundary fires for any@foritem that renders a component child — the same boundary React memo uses. Items that inline bare hosts without a component boundary still re-run their lambda (wire output still elides via value-diff from feat(lynx): change-size-proportional commit wire cost, with a gated cross-framework benchmark (integration of 3 upstream PRs) #1).Changes
packages/octane/src/universal-core.ts: dropthis.transport === nullfrom the full-rootretainEligiblepredicate; comment documents why transported roots qualify. Bridge, replay, transition, and full-root-scheduled attempts stay excluded; the scoped owned-update path stays local-only.packages/octane/tests/universal-transport.test.ts: newtransported retained-subtree adoptionsuite over the real MessageChannel loopback — adoption + retained-listener dispatch + own-prop re-entry, context-change re-render through retained-prop items (and re-adoption after the provider settles), keyed rotation of adopted items without re-render or remount. All three fail before the fix (every item re-renders).benchmarks/lynx-table:Rowrender counter behind__OCTANE_LYNX_PROFILE__(App.lynx.tsrx),itemRendersper-op counters and aswapop (workload.ts), gates + drift signature + console output (run.mjs), README notes the third counter.benchmarks/baselines/ratios.json: 8 guards —{update10th,select,swap}_item_renders_{1k,10k}at the changed-rows floor, plusswap_commands_{1k,10k}pinned as a KNOWN GAP waterline (997 move commands for a rows-1↔998 transposition vs the 2-move model; LIS guarantees final order and survivor identity, not move-set minimality)..changeset/universal-transport-retained-adoption.md:octanepatch.Measured
Deterministic (in-process dual-thread rig, real tap tokens, drift-checked across iterations; wire counters byte-identical before/after):
Red-checked: reverting the gate breaches
update10th_item_renders_1kat 10.00×,select_item_renders_1kandswap_item_renders_1kat 500.00×, and the three new behavioral tests fail on bothoctaneandoctane-prodprojects.Lynx for Web wall clock (same 4-core host, back-to-back runs, identical instrument every cell, medians of n=3), before → after:
Validation
pnpm format:checkpnpm typecheckpnpm test— full root run on this head: 16889 passed / 106 skipped; 19 failed files are the container's known pre-existing set, identical to the pre-change baseline run (17 Playwright-browser files — no Chromium download allowed in this environment, rspeedy native-demo — macOS-only, website ssr-smoke/benchmarkscard count — pre-existing on the base branch, reported on feat(lynx): change-size-proportional commit wire cost, with a gated cross-framework benchmark (integration of 3 upstream PRs) #1). Six more tests pass than baseline: the three new retention tests × two projects.universal-transport(48/48, both projects, incl. the pinned ack-coalescing contract), alluniversal-*suites (444/444),packages/lynx/tests(280/280, two-realm rig with validation on)node benchmarks/bench.mjs --quick --ratios --only lynx-table→ PASS, 13 guards checked; red-check breaches exactly the new guardsRisk / follow-ups
@foritem (same rule as React memo); inline-host items still re-run their lambda. Wire cost stays change-proportional either way.swap_commandswaterline (997 moves for a far transposition) is a newly-measured pre-existing gap, now pinned so it cannot silently grow; shrinking the LIS move set is open follow-up.sameUniversalHostPropValueper entry) remains available if real apps pass fresh-but-equal props objects; deliberately not taken here to preserve exact React memo semantics.Provenance
agent-authored)🤖 Generated with Claude Code
https://claude.ai/code/session_013br9KPN1riTSP683xEvUuU
Generated by Claude Code