Skip to content

perf(octane): copy a keyed reorder's record directly until it relinks a row - #1890

Merged
trueadm merged 20 commits into
mainfrom
fix/keyed-reorder-map-allocs
Oct 8, 2026
Merged

trueadm merged 20 commits into
mainfrom
fix/keyed-reorder-map-allocs

Conversation

@trueadm

@trueadm trueadm commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Why

The weekly Bench CI would flag the same harness failure. The regression is real work on every whole-list reorder under the root journal, which every scheduled render opens.

Changes

  • packages/octane/src/runtime.ts: journalForSlot and journalForOwnedListClear (record lookup inline), fullForSlotRecord (now a no-op for a full record or none), and forSlotLinks, which reconcileKeyed's link sites use. SLOT_RECORDS is removed.
  • packages/octane/tests/keyed-rollback-links.test.ts and its fixture: three rollback cases for a record that only saw index writes:
    • a rotation that relinks every row (LIS conversion);
    • the same after a committed reorder left the key Map out of order (the Map order is restored, checked by dev error 343);
    • a reorder whose row suspends partway through the survivor walk, so the root rolls back before any row is relinked.
  • Bundle budgets lowered for the bytes this saves, as the ratchet requires. Each raw and gzip row drops by exactly what this change saves against main (e14fbdf), measured per scenario on both trees. That gives 56 lowers. Brotli rows keep main's values, and nothing is raised (budget-raises.mjs --base origin/main reports none). hydrate-frame raw was checked against main's CI shard log, and local main matches it byte for byte.
  • Changeset: octane patch.

Validation

  • pnpm format:check: not run repo-wide. pnpm format:files on every changed file.

  • pnpm typecheck: not run repo-wide. pnpm typecheck:files on the runtime, test and fixture passes.

  • pnpm test: not run locally (machine load rule). CI runs it.

  • targeted tests (--project octane): keyed-rollback-links, for, parked-two-windows, empty-refill-rollback, keyed-removal-lifetime, keyed-selection-alias and suspense-preserves-dom pass (258 tests).

  • New tests fail against broken variants:

    • undo skipping conversion of an unrelinked record fails the mid-walk suspend case (TypeError … nextSibling);
    • dropping the key Map order on that conversion fails the out-of-order rotation (dev 343);
    • a record lookup that always misses fails four cases, both new rotation cases among them.
  • Gate: node benchmarks/recursive-context/context-cache-work.mjs gives reorder Maps zero/one/two = 2/2/2 (main: 4/4/4) and "Context-cache allocation and semantic gates passed."

  • Paired js-framework reorder matrix: run-reorder.mjs 12 with TARGETS, run against production builds of e67e86f (before perf(octane): record only the relinked rows when a keyed list may roll back #1833), main 9d4c14f and this fix, served side by side and sampled in rotating order in one Chromium. The final build was re-run after self-review. Medians in ms per click:

    op before perf(octane): record only the relinked rows when a keyed list may roll back #1833 main fix fix/main fix/before
    rotatef 0.0599 0.0779 0.0578 0.742 0.964
    rotateb 0.0546 0.0722 0.0540 0.747 0.989
    displace3 0.0650 0.0838 0.0650 0.776 1.000
    displace4 0.0715 0.0947 0.0697 0.736 0.974
    displace5 0.0726 0.0995 0.0740 0.744 1.020
    displace6 0.0734 0.0982 0.0746 0.760 1.017
    displace8 0.0734 0.1000 0.0731 0.731 0.995
    reverse 0.650 0.645 0.638 0.988 0.981
    shuffle 0.693 0.726 0.692 0.954 1.000
    removefirst 0.035 0.030 0.030 1.000 0.857

    rme is at most 3.6% on the rotate and displace rows. perf(octane): record only the relinked rows when a keyed list may roll back #1833's swap, remove and insert gains are kept; the timer-floor ops (*100, removeevery10) are within noise.

  • Against [email protected] (8a4a2e0), the baseline where the parent session saw main 12–17% slower: its own octane-tsrx fixture was built with its own toolchain and paired with main and this fix in the same run-reorder.mjs 12 run. Medians in ms per click:

    op 0.3.6 main fix main/0.3.6 fix/0.3.6
    rotatef 0.0730 0.0798 0.0615 1.093 0.841
    rotateb 0.0670 0.0767 0.0579 1.144 0.863
    displace3 0.0750 0.0864 0.0662 1.152 0.883
    displace4 0.0768 0.0864 0.0679 1.125 0.884
    displace5 0.0778 0.0880 0.0684 1.131 0.879
    displace6 0.0782 0.0908 0.0692 1.162 0.885
    displace8 0.0806 0.0940 0.0709 1.166 0.880

    This fix covers the whole 0.3.6..main regression on small moves: the fix is 11–16% faster than 0.3.6 there, and rme is at most 2.8%.

  • Work counters: node benchmarks/js-framework/pair.mjs --base-tree=<main c0192ec816> --work-only shows every calls_* and dom_* counter, for both octane-tsrx and octane-jsx, equal to main's. The first head added two calls per operation, which the bench report caught: a record-lookup helper and a no-op conversion call ran on each list's first record. Both are gone, and the lookup is inline.

  • Bundle size: on the pre-fix: coalesce and pace ready signal producers #1875 base (c0192ec), the CI step (run-minimal.mjs --budgets --ratchet and run.mjs --budgets --ratchet octane-tsrx octane-jsx) passed, and so did budget-raises.mjs and run-hydration-free.mjs. On current main (e14fbdf) the same steps pass: every ceiling, the ratchet, budget-raises.mjs and run-hydration-free.mjs. Framework raw is 104–112 bytes smaller on every changed row. Gzip on the bindings app compresses badly with small changes: its framework chunk is +5 gzip against main (108,922 against a budget of 108,932) while its raw is −104. Inlining the record lookup took that from +21, which was over budget, to +5. CI and local bytes for that app matched exactly on this PR's first run.

  • perf-review: see below.

Perf review: fix/keyed-reorder-map-allocs (origin/main..HEAD)

Scan: node scripts/perf-review-scan.mjs found no candidates.
Hot paths touched:

  • reconcileKeyed's journal sites, which run once per keyed reconcile that changes order or membership under a journal (every scheduled render opens the root journal);
  • journalForSlot, once per list per window, plus one lookup per later reconcile of that list in the window;
  • fullForSlotRecord, at most once per record.
# Severity Location Dimension Finding Required evidence Provided?
1 note packages/octane/src/runtime.ts journalForSlot allocation Per reorder: no links Map until a relink, and no per-journal Map, so a reorder that ends on the LIS path allocates the record and the chain/key-order arrays only, as it did before #1833. Inserts, removals and displacements still allocate one links Map at their first relink. Map-construction count yes: context-cache gate 4 → 2
2 note packages/octane/src/runtime.ts ForSlotRecord literal shapes One literal site, every key present, in a fixed order. check stays the existing development-only field. none (unchanged shape) n/a
3 note packages/octane/src/runtime.ts journalForSlot record lookup representation Reads log[at + 2] only when log[at] === JOURNAL_UNDO. Every other journalUndo entry carries null there. Log walkers ignore that slot for JOURNAL_UNDO. rollback tests yes

Dismissed candidates: none.
Not checked: Event Timing, because no user-visible latency claim is made. The js-framework production call and DOM counters are left to the PR bench.

Risk / follow-ups

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Medium Risk
Changes transition-journal keyed-list rollback storage and conversion on hot reconcile paths; correctness is covered by expanded rollback tests but the journal entry layout is subtle.

Overview
Fixes a keyed-list reorder regression where link-style rollback records allocated a links Map and a per-journal SLOT_RECORDS map up front, then paid extra work when a reorder moved every row (rotations, LIS path).

journalForSlot now stores each list’s ForSlotRecord on the spare field of its own JOURNAL_UNDO entry (lookup via seen), and forSlotLinks creates the links map only on the first relink. Records that never relink convert with a direct list copy, matching pre-0.10.1 cost. SLOT_RECORDS is removed; reconcileKeyed and journalForOwnedListClear follow the new lookup and wholesale-convert rules.

Adds rollback tests for full rotations, out-of-order key maps, and suspend-before-relink; lowers bundle-size budgets (~110B framework); octane patch changeset.

Reviewed by Cursor Bugbot for commit 889dd51. Bugbot is set up for automated code reviews on this repo. Configure here.

… a row

A keyed reorder records its list at the first row index it rewrites, before it
knows whether it will relink a few rows or every row. Since #1833 that record
allocated its `links` Map and a per-journal records Map up front. When the
reorder then reached the LIS path, `fullForSlotRecord` walked the chain through
the empty links Map and, for a key Map already out of chain order, built a Set
of every row to filter it.

The record now gets its links Map at its first relink (`forSlotLinks`). Until
then only index writes have run, which change neither the chain nor the key
Map, so converting it copies the list as it stands, which is the full form's
cost before #1833. The record rides in the spare slot of its own undo entry,
found again through the window's `seen` index, so `SLOT_RECORDS` is gone and the
record still lives exactly as long as its log.

- recursive-context zero-context reorder: 4 Map constructions -> 2, so
  context-cache-work.mjs passes its ceiling again (bisected to e595a13).
- js-framework reorder matrix (octane-tsrx, paired, 12 samples): rotatef,
  rotateb and displace3-8 are 22-27% faster than main and within 5% of the
  runtime before #1833; removals and inserts keep #1833's gains.
- Framework bundles are 129-137 raw bytes smaller; budgets lowered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent perf PR: performance work labels Oct 8, 2026
@trueadm
trueadm marked this pull request as ready for review October 8, 2026 12:27
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🔴 bundle-size: 7 value(s) increased within budget
  • 🔴 bundle-reachability: 3 value(s) increased within budget

Compares e14fbdf9a, the merge commit's first parent with ed9e23444 on the same runner. A byte value over its committed budget or any increase in a js-framework work counter fails this check. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

All 20 timed operations (20 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 2.767 2.750 −0.0% −3.4% … +3.2% ⚪ within noise
octane-tsrx replace 6.950 6.817 −0.0% −3.4% … +3.2% ⚪ within noise
octane-tsrx add 2.517 2.500 ±0.0% −7.4% … +4.1% ⚪ within noise
octane-tsrx update 0.133 0.132 −1.2% −3.4% … +1.2% ⚪ within noise
octane-tsrx select 0.006 0.005 +0.5% −0.5% … +2.1% ⚪ within noise
octane-tsrx swap 0.031 0.031 −2.0% −3.4% … −0.3% ⚪ within noise
octane-tsrx remove 0.016 0.016 −3.7% −8.0% … +2.3% ⚪ within noise
octane-tsrx runlots 24.708 24.858 +0.0% −2.1% … +2.1% ⚪ within noise
octane-tsrx select_lots 0.006 0.006 +0.9% −0.3% … +1.8% ⚪ within noise
octane-tsrx clear 51.592 50.542 −1.3% −4.2% … +1.6% ⚪ within noise
octane-jsx run 3.958 4.100 −2.6% −5.0% … +5.1% ⚪ within noise
octane-jsx replace 9.042 9.092 −3.0% −5.7% … −1.6% ⚪ within noise
octane-jsx add 3.667 3.650 −2.7% −5.5% … ±0.0% ⚪ within noise
octane-jsx update 0.327 0.325 +0.3% −4.8% … +6.3% ⚪ within noise
octane-jsx select 0.167 0.166 +0.3% −3.9% … +2.8% ⚪ within noise
octane-jsx swap 0.269 0.269 −0.3% −3.5% … +2.9% ⚪ within noise
octane-jsx remove 0.254 0.248 +1.0% −10.4% … +6.6% ⚪ within noise
octane-jsx runlots 45.425 46.342 +3.7% −3.5% … +14.2% ⚪ within noise
octane-jsx select_lots 4.388 5.117 +10.7% −10.3% … +35.1% ⚪ within noise
octane-jsx clear 56.158 53.800 +0.6% −5.8% … +7.0% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx js_raw 113,177 113,040 −137 (−0.1%) 🟢
octane-tsrx js_gzip 36,909 36,876 −33 (−0.1%) 🟢
octane-tsrx js_brotli 32,693 32,647 −46 (−0.1%) 🟢
octane-tsrx app_gzip 2,336 2,335 −1 (−0.0%) 🟢
octane-tsrx fw_raw 106,231 106,094 −137 (−0.1%) 🟢
octane-tsrx fw_gzip 34,573 34,541 −32 (−0.1%) 🟢
octane-tsrx fw_brotli 30,652 30,606 −46 (−0.2%) 🟢
octane-tsrx todo_js_raw 121,562 121,425 −137 (−0.1%) 🟢
octane-tsrx todo_js_gzip 39,708 39,680 −28 (−0.1%) 🟢
octane-tsrx todo_js_brotli 34,962 34,889 −73 (−0.2%) 🟢
octane-tsrx todo_app_gzip 2,220 2,219 −1 (−0.0%) 🟢
octane-tsrx todo_app_brotli 1,880 1,884 +4 (+0.2%) 🔴
octane-tsrx todo_fw_raw 116,944 116,807 −137 (−0.1%) 🟢
octane-tsrx todo_fw_gzip 37,488 37,461 −27 (−0.1%) 🟢
octane-tsrx todo_fw_brotli 33,082 33,005 −77 (−0.2%) 🟢
octane-tsrx chat_js_raw 120,311 120,174 −137 (−0.1%) 🟢
octane-tsrx chat_js_gzip 39,531 39,504 −27 (−0.1%) 🟢
octane-tsrx chat_js_brotli 34,897 34,836 −61 (−0.2%) 🟢
octane-tsrx chat_app_gzip 2,716 2,715 −1 (−0.0%) 🟢
octane-tsrx chat_app_brotli 2,388 2,391 +3 (+0.1%) 🔴
octane-tsrx chat_fw_raw 114,546 114,409 −137 (−0.1%) 🟢
octane-tsrx chat_fw_gzip 36,815 36,789 −26 (−0.1%) 🟢
octane-tsrx chat_fw_brotli 32,509 32,445 −64 (−0.2%) 🟢
octane-tsrx weather_js_raw 156,865 156,728 −137 (−0.1%) 🟢
octane-tsrx weather_js_gzip 50,928 50,899 −29 (−0.1%) 🟢
octane-tsrx weather_js_brotli 44,455 44,379 −76 (−0.2%) 🟢
octane-tsrx weather_app_gzip 7,872 7,873 +1 (+0.0%) 🔴
octane-tsrx weather_app_brotli 6,659 6,665 +6 (+0.1%) 🔴
octane-tsrx weather_fw_raw 134,711 134,574 −137 (−0.1%) 🟢
octane-tsrx weather_fw_gzip 43,056 43,026 −30 (−0.1%) 🟢
octane-tsrx weather_fw_brotli 37,796 37,714 −82 (−0.2%) 🟢
octane-tsrx bindings_js_raw 688,861 688,725 −136 (−0.0%) 🟢
octane-tsrx bindings_js_gzip 225,037 225,020 −17 (−0.0%) 🟢
octane-tsrx bindings_js_brotli 191,253 191,249 −4 (−0.0%) 🟢
octane-tsrx bindings_app_gzip 115,666 115,667 +1 (+0.0%) 🔴
octane-tsrx bindings_app_brotli 96,224 96,242 +18 (+0.0%) 🔴
octane-tsrx bindings_fw_raw 341,223 341,087 −136 (−0.0%) 🟢
octane-tsrx bindings_fw_gzip 109,371 109,353 −18 (−0.0%) 🟢
octane-tsrx bindings_fw_brotli 95,029 95,007 −22 (−0.0%) 🟢
octane-tsrx full_fw_raw 568,692 568,556 −136 (−0.0%) 🟢
octane-tsrx full_fw_gzip 171,259 171,238 −21 (−0.0%) 🟢
octane-tsrx full_fw_brotli 144,030 144,005 −25 (−0.0%) 🟢
octane-jsx js_raw 187,752 187,615 −137 (−0.1%) 🟢
octane-jsx js_gzip 59,567 59,520 −47 (−0.1%) 🟢
octane-jsx js_brotli 51,791 51,731 −60 (−0.1%) 🟢
octane-jsx app_gzip 2,858 2,857 −1 (−0.0%) 🟢
octane-jsx app_brotli 2,409 2,411 +2 (+0.1%) 🔴
octane-jsx fw_raw 179,487 179,350 −137 (−0.1%) 🟢
octane-jsx fw_gzip 56,709 56,663 −46 (−0.1%) 🟢
octane-jsx fw_brotli 49,382 49,320 −62 (−0.1%) 🟢
octane-jsx full_fw_raw 568,692 568,556 −136 (−0.0%) 🟢
octane-jsx full_fw_gzip 171,259 171,238 −21 (−0.0%) 🟢
octane-jsx full_fw_brotli 144,030 144,005 −25 (−0.0%) 🟢

7 other measured values are unchanged.

Public-import reachability bundles (bytes)

target metric base head Δ
cli-spa-starter raw 102,227 102,088 −139 (−0.1%) 🟢
cli-spa-starter gzip 34,024 33,986 −38 (−0.1%) 🟢
cli-spa-starter brotli 29,881 29,917 +36 (+0.1%) 🔴
root-static raw 165,569 165,432 −137 (−0.1%) 🟢
root-static gzip 52,321 52,291 −30 (−0.1%) 🟢
root-static brotli 45,602 45,562 −40 (−0.1%) 🟢
hydrate-frame raw 366,086 365,949 −137 (−0.0%) 🟢
hydrate-frame gzip 113,539 113,518 −21 (−0.0%) 🟢
hydrate-frame brotli 97,065 97,115 +50 (+0.1%) 🔴
binding-base-ui-vite raw 199,772 199,635 −137 (−0.1%) 🟢
binding-base-ui-vite gzip 62,787 62,760 −27 (−0.0%) 🟢
binding-base-ui-vite brotli 54,639 54,528 −111 (−0.2%) 🟢
binding-base-ui-esbuild raw 215,303 215,166 −137 (−0.1%) 🟢
binding-base-ui-esbuild gzip 69,754 69,716 −38 (−0.1%) 🟢
binding-base-ui-esbuild brotli 60,516 60,467 −49 (−0.1%) 🟢
binding-radix-vite raw 201,807 201,670 −137 (−0.1%) 🟢
binding-radix-vite gzip 63,396 63,364 −32 (−0.1%) 🟢
binding-radix-vite brotli 55,115 55,035 −80 (−0.1%) 🟢
binding-radix-esbuild raw 217,127 216,990 −137 (−0.1%) 🟢
binding-radix-esbuild gzip 70,304 70,269 −35 (−0.0%) 🟢
binding-radix-esbuild brotli 61,085 61,008 −77 (−0.1%) 🟢
binding-apollo-client-vite raw 342,224 342,087 −137 (−0.0%) 🟢
binding-apollo-client-vite gzip 105,071 105,047 −24 (−0.0%) 🟢
binding-apollo-client-vite brotli 91,758 91,701 −57 (−0.1%) 🟢
binding-apollo-client-esbuild raw 365,446 365,309 −137 (−0.0%) 🟢
binding-apollo-client-esbuild gzip 116,092 116,044 −48 (−0.0%) 🟢
binding-apollo-client-esbuild brotli 101,250 101,311 +61 (+0.1%) 🔴

84 other measured values are unchanged.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website 716cc05 Commit Preview URL

Branch Preview URL
Oct 08 2026, 02:29 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
🔵 In progress
View logs
octane-website-mcp 716cc05 Oct 08 2026, 02:29 PM

trueadm and others added 13 commits October 8, 2026 13:46
…an entry

The PR bench counted two more production calls on every js-framework
operation: journalForSlot and journalForOwnedListClear called the record
lookup, and fullForSlotRecord with no record, even for a list's first record in
a render, where there is no entry to find. Skip both when the list has no
entry. Every js-framework calls_* and dom_* counter now equals main's
(pair.mjs --work-only).

Lower the bindings app and total brotli budgets the ratchet now asks for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-allocs

# Conflicts:
#	benchmarks/bundle-size/minimal-budgets.json
Inline the record lookup in journalForSlot and journalForOwnedListClear. With
the helper, the bindings app's framework chunk compressed 21 gzip bytes larger
than main's, past its budget, although raw was 104 bytes smaller. Inline, it is
5 gzip bytes larger and 10 under the budget. Production calls are unchanged:
every js-framework calls_* and dom_* counter equals main's (pair.mjs
--work-only against c0192ec).

Re-measure the bundle budgets on current main. The merges took main's budget
files, and this writes 40 lowers and no raises.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-allocs

# Conflicts:
#	benchmarks/bundle-size/minimal-budgets.json
…-allocs

# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
#	benchmarks/bundle-size/jsx-budgets.json
#	benchmarks/bundle-size/minimal-budgets.json


The merge took main's budget files. #1891 raised 70 rows ahead of #1875,
which is still open. Each raw and gzip row now drops by exactly what this change
saves against main (2f81266), measured per scenario on both trees. A row
#1891 raised therefore keeps #1875's headroom. Brotli rows keep main's values,
and no value is raised.

Every head measurement fits its budget. The ratchet flags only the 70 rows
#1891 raised for #1875, as it does for any PR until #1875 lands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…yed-reorder-map-allocs

# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
#	benchmarks/bundle-size/minimal-budgets.json
The merge took main's budget files. Each raw and gzip row that main
(abe9b42) fits drops by exactly what this change saves against main,
measured per scenario on both trees. Brotli rows keep main's values unless the
ratchet asks for less. That gives 24 lowers and no raises.

Main measures over 35 rows after #1875 and #1888, and #1887 budgets that
growth. Those rows keep main's values here. Merging #1887 will re-lower the
ones this change also saves on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-allocs

# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
#	benchmarks/bundle-size/jsx-budgets.json
#	benchmarks/bundle-size/minimal-budgets.json
The merge took main's budget files (6eef1e0). Each raw and gzip row that
main fits drops by exactly what this change saves against main, measured per
scenario on both trees. Brotli rows keep main's values unless the ratchet asks
for less. That gives 37 lowers and no raises. The rows #1893 raised for #1892
keep #1892's growth. The 30 rows main exceeds until #1887 lands keep main's
values.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-allocs

# Conflicts:
#	benchmarks/bundle-size/minimal-budgets.json
@blacksmith-sh

This comment has been minimized.

trueadm and others added 5 commits October 8, 2026 16:00
The merge took main's budget files. Main now fits every row. Each raw and gzip
row drops by exactly what this change saves against main, measured per scenario
on both trees. Brotli rows keep main's values unless the ratchet asks for less.
That gives 63 lowers and no raises. The rows #1893 raised for #1892 keep
#1892's growth.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-allocs

# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
#	benchmarks/bundle-size/jsx-budgets.json
#	benchmarks/bundle-size/minimal-budgets.json
The merge took main's budget files. e14fbdf set every budget to main's
measured bytes plus headroom. Each raw and gzip row drops by exactly what this
change saves against main, measured per scenario on both trees. Brotli rows
keep main's values unless the ratchet asks for less. That gives 56 lowers and
no raises. Every ceiling and the ratchet hold locally, and so do the
budget-raise and hydration-free checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-allocs

# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
#	benchmarks/bundle-size/jsx-budgets.json
#	benchmarks/bundle-size/minimal-budgets.json
The merge took main's budget files (68aa481), which match main's measured
bytes. Each raw and gzip row drops by exactly what this change saves against
main, measured per scenario on both trees. Brotli rows keep main's values
unless the ratchet asks for less. That gives 54 lowers and no raises.

Locally, binding-mantine-hooks-esbuild brotli is 7 bytes over main's value,
27,265 against 27,258. Its raw and gzip bytes equal main's: esbuild assigns
different minified names in that bundle, and brotli compresses them
differently.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm merged commit 1fb0ecd into main Oct 8, 2026
14 of 26 checks passed
@trueadm
trueadm deleted the fix/keyed-reorder-map-allocs branch October 8, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent perf PR: performance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants