Repository navigation
perf: reuse bounded keyed-reorder scratch storage - #630
Merged
domgan-oai merged 1 commit intoAug 7, 2026
Merged
domgan-oai merged 1 commit into
domgan-oai merged 1 commit into
Conversation
6 of 13 tasks
trueadm
marked this pull request as ready for review
August 7, 2026 21:38
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
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
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
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
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
leonidaz
pushed a commit
that referenced
this pull request
Aug 9, 2026
* feat(gsap): add Octane useGSAP binding * fix(ci): allow current Octane release * chore(evals): refresh user app corpus manifest * docs: list GSAP in agent binding guide * fix(gsap): align review edge cases * test: register GSAP manual hook slots * fix(gsap): keep mount cleanup hook stable * fix(gsap): preserve positional null dependencies (#423) * fix(evals): drop duplicate user-apps manifest rows The train manifest accidentally appended a second copy of every taskId with stale package pins, which breaks dataset validation. Co-authored-by: Cursor <[email protected]> * chore(ci): refresh react-parity evidence after main merge Regenerate lockfile hashes and inventory for gsap. * perf: reuse bounded keyed-reorder scratch storage (#630) * chore(ci): refresh react-parity evidence after main merge Regenerate lockfile hashes and inventory for gsap. * chore(changeset): drop stale merge-resurrected release entries Remove octane and mcp-server changesets that already shipped on main and would duplicate patch bumps in this GSAP binding PR. Co-authored-by: Cursor <[email protected]> * fix(gsap): drop unrelated merge-residue release-age excludes Keep only the mainline [email protected] exclude; the broader package list was merge residue and weakened the workspace gate without belonging to GSAP. Co-authored-by: Cursor <[email protected]> * test(gsap): register React/Octane parity evidence Upstream @gsap/react ships no runtime suite, so add a repo-authored adapted lane, differential project against the pinned binding, type lanes, and audit/react-parity.json for react-parity:check discovery. Co-authored-by: Cursor <[email protected]> * fix(gsap): address parity review on unpaired suite and deferred cleanup Move Octane-only lifecycle cases out of react-parity ownership, require only differential evidence when upstream runtime tests are absent, and assert unmount cleanup through a teardown-surviving side channel. Co-authored-by: Cursor <[email protected]> * chore(ci): refresh inventory and parity hashes after main merge Restore @octanejs/gsap in the generated package inventory and regenerate react-parity lockfile integrity plus the user-apps corpus pins. Co-authored-by: Cursor <[email protected]> * chore(ci): refresh inventory and eval manifests after main merge Co-authored-by: Cursor <[email protected]> * fix(ci): refresh vitest.config.js react-parity digests Co-authored-by: Cursor <[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]>
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
Part of #611 (phase 5).
Int32Arraybuffers (128 KiB total), discard oversized buffers, and never retain keys, item objects, blocks, or DOM nodes.A balanced 64-pair, two-epoch 10,000-row reversal comparison preserved exactly 9,999 DOM moves: persistent-list medians were 11.375 ms upstream versus 11.3625 ms after this change; fresh-list medians were 6.3625 ms versus 6.25 ms. A 5,000-rotation Chrome trace showed transient ArrayBuffer backing growth of 96–560 KB upstream versus 15 B after reuse; median minor-GC counts were unchanged, so this change does not claim fewer collections.
Validation
pnpm format:checkpnpm typecheckpnpm testexternal-hook-slot.test.tsandregister-hook.test.tswere additionally excluded because this safely filtered offline workspace cannot install their optional binding dependencies../node_modules/.bin/tsgo --noEmit -p packages/octane/tsconfig.json./node_modules/.bin/tsgo --noEmit -p packages/octane/typetests/tsconfig.jsonpnpm typecheck:files packages/octane/src/runtime.tspnpm syncnode scripts/check-changesets.jsFull workspace
pnpm typecheckandpnpm testremain unavailable because the configured package registry cannot supply uncached optional Preact/Ripple binding dependencies; no registry override or substitute package source was used.Risk / follow-ups
Provenance
agent-authored)Note
Medium Risk
Touches shared
reconcileKeyed/ LIS paths used by all keyed lists; incorrect buffer leasing could corrupt nested reorders or retain unbounded memory, though new gates and tests target those failure modes.Overview
Keyed list reconciliation in
reconcileKeyedno longer allocates freshInt32Arrayscratch on every middle-section diff. It leases a reusable sources buffer (cleared from the module cache while survivor bodies run, then returned in afinallyblock) and caches a separate LIS predecessor buffer, keeping at most two 16,384-entry arrays (~128 KiB) and dropping oversized buffers instead of retaining them.The keyed-reorder benchmark adds a post-timing scratch-storage gate for Octane TSRX/JSX: an
Int32Arrayconstructor trap checks that warmed reorders, append-only inserts, and shrink-back behavior stay allocation-free where expected, while very large lists may allocate disposable scratch without polluting the reusable pool; retained backing storage after GC must stay ≤128 KiB.Regression coverage adds nested parent/child keyed reorder fixtures and tests (DOM identity, hydration, error boundaries, Suspense, and transitions) to guard exclusive buffer leasing when lists re-enter during rendering.
Reviewed by Cursor Bugbot for commit 8044a11. Bugbot is set up for automated code reviews on this repo. Configure here.