Skip to content

perf(octane): move feature-only Block state to a lazy record - #1896

Merged
trueadm merged 8 commits into
mainfrom
fix/slim-block-fields
Oct 8, 2026
Merged

trueadm merged 8 commits into
mainfrom
fix/slim-block-fields

Conversation

@trueadm

@trueadm trueadm commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fourteen BlockImpl fields served only a few features: Suspense, @try and <Activity> boundaries, use() thenables, fetch-tree warming, the loop guard for updates scheduled from commit callbacks, useEffectEvent, and <ViewTransition>. They now live on a rare record. blockRare() allocates it from a single object literal the first time one of those features touches a Block. Every other Block carries rare: null.

  • BlockImpl drops from 79 to 66 fields, and its constructor bytecode from 437 to 371 bytes.
  • LiteBlockImpl gains rare: null, so walks along parentBlock chains read one field on every block shape and need no undefined cases.
  • drainStamp/drainRenders stay on BlockImpl. sortWaveByDepth uses them as scratch on every ancestor, so moving them would allocate a record per ancestor on update waves.
  • Nothing new runs on the mount, render or user-update paths. The record is allocated only on the first boundary, use(), useEffectEvent, warm cache, ViewTransition, or commit-callback update for a Block.
  • The scheduler's nested-update counting moved into countNestedUpdate(), which runs only for commit-callback updates. A user update now resets the count and error only when a record already exists. A Block without one already reads as a fresh chain, and chain ids only grow, so a stale stored chain also reads as fresh.

This is step 1 of the cold-mount plan agreed in the session: slim Block first, then lite control-flow arms in a separate PR.

Why

Octane trails React on cold first mounts of component-heavy trees. The ratios are 1.19–1.25× on memo-wall, portal-swarm and recursive-context. These are paired cold mounts in Chromium, one fresh page per sample.

  • A sampling heap profile of a recursive-context mount shows BlockImpl as the largest allocation, at 1.29 MB of 4.1 MB.
  • Padding BlockImpl with 36 dummy fields cost memo-wall +7.8% and portal-swarm +5.7%.

The gain is not linear in field count. With 3 dummy fields added back (69 fields, 386 bytes of bytecode), memo-wall's gain disappears: 0.990 instead of 0.955. That is consistent with V8 inlining a hot callee only within a bytecode budget. The BlockImpl doc comment now records this, so new always-present fields get weighed against it.

Measurements

Paired cold first mounts. Each round opens one fresh page per target in alternating order and times the first __mount(). There were 40 rounds, using production builds served statically. Base is 8444db8ae9, before the merge of main.

Suite Blocks per mount candidate ÷ base 95% CI
memo-wall 8,006 0.960 [0.944, 0.964]
portal-swarm 1,205 0.981 [0.972, 1.000]
recursive-context 4,102 0.985 (an earlier session gave 0.973) [0.971, 0.985]
signal-favoring 19 1.000 [0.969, 1.000]
  • The full recursive-context harness (run.mjs, base and candidate in the order-balanced dialect slots) shows no op regressed: mount 1.00×, update_root 0.97×, unmount 0.99×. The 0.1 ms partial ops sit at the timer's resolution.
  • The spa-navigation semantic gate passes. That covers route swaps, teardown, and the shell and layout surviving by identity.

Bundle bytes: needs a companion budget-only PR

Raw bytes fall in most scenarios, by 8–84 B. Gzip grows, because the .rare?. reads at boundary, thenable and effect-event sites compress worse than the repetitive constructor lines they replace. Local measurements against base:

  • Minimal scenarios: gzip +17 to +120 B. Raw −84 to +25 B; hydrate-frame is +25 raw.
  • App scenarios: gzip +41 to +108 B (rows +48, todo +78, chat +48, weather +89, bindings +108, rows-jsx +41).

A feature PR cannot raise budgets (benchmarks/bundle-size/budget-raises.mjs). The companion budget-only PR is #1906. It raises the 48 gzip and Brotli ceilings this change exceeds (36 gzip, 12 Brotli), measured on this branch merged with main 68aa48102b. This PR lowers the 36 raw ceilings it shrinks, from the same --write-budgets run. Merge #1906 immediately before this PR. Until #1906 lands, the bundle-size check here fails on the gzip rows, as expected.

spa-navigation's warm navigations, from the order-balanced harness: nav_mount 0.979 and nav_deep 0.976, with the other ops neutral.

The two smaller variants measured worse:

  • Keeping the nested-update guard on Block (11 fields moved, 69 left) still grew gzip by 23–111 B in Suspense and app bundles. It lost the memo-wall gain entirely (0.994–1.000).
  • Moving fewer fields gives up most of the measured gain.

Validation

  • pnpm format:files:check on every changed file.
  • pnpm typecheck:files packages/octane/src/runtime.ts packages/octane/src/signals/transition-coordinator.ts packages/octane/tests/render-block-dormant.test.ts
  • pnpm format:check, pnpm typecheck and pnpm test are left to CI, following the shared-machine load rule.
  • Targeted tests in the octane project: 19 files and 307 tests before the merge, 13 files and 200 tests after it. They cover Suspense, @try, Activity, ViewTransition, useEffectEvent, warm plans, nested suspension, update depth, transitions and foreign delegation. render-block-dormant and update-reconciliation also pass in octane-prod.
  • New regression test, render-block-dormant.test.ts: an uncached use() promise created on every render resolves from its call position. It covers a component with only use() and one with an Effect Event before use(). It passes on main and on this branch. It fails in 1–3 ms when the per-render thenableIdx reset is removed, because it stays on the fallback. Before this change no test covered that reset; removing it passed 50 Suspense tests.
  • Mutation check: dropping the nested-update reset on a user update fails conformance/update-reconciliation.test.ts, "resets the update counter for unrelated updates".
  • node --test scripts/perf-review-scan.test.mjs: 17/17. The whole-runtime sanity check now expects rare among the Block fields instead of vt.
  • perf-review report:
## Perf review: fix/slim-block-fields (origin/main..HEAD)

Scan: `node scripts/perf-review-scan.mjs` → 0 candidates (hot-class-shape and hot-field-write clean).
Hot paths touched:
- Per block: BlockImpl constructor and renderBlockInner.
- Per scheduled update: drainQueue and scheduleRender.
- Per teardown: findTryHandler's parent walk.
- Feature-only: try/Suspense/Activity registration, use(), useEffectEvent, warm plans, VT.

| # | Severity | Location | Dimension | Finding | Required evidence | Provided? |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | needs-evidence | packages/octane/src/runtime.ts `blockRare` | shapes | New hot-ish record. It has one literal site with all 14 keys in a fixed order, so it gets one map. Its fields are written only through the record. | One map per record family | By construction (single literal site); no %HaveSameMap probe run |
| 2 | needs-evidence | packages/octane/src/runtime.ts `findTryHandler`, `findScheduledVisibilityOwner`, Suspense/Activity walks | shapes | parentBlock walks now read `rare` on BlockImpl and LiteBlockImpl. Both declare and initialize it, which keeps these sites at their existing two receiver maps. | Calls per op from the PR bench | Pending CI bench report |
| 3 | note | packages/octane/src/runtime.ts `countNestedUpdate` | allocation | First commit-callback update per Block allocates the record (once per Block lifetime) | none | n/a |

Dismissed: none. No DOM, scheduling-contract, or compiled-output change. Compiler output is unchanged.
Not checked: Event Timing (no interaction path changed); js-framework production calls per op (CI bench gate).

Risk / follow-ups

  • Bundle-size budgets need the companion budget-only PR, merged immediately before this one (see above).
  • The memo-wall gain depends on a V8 inlining heuristic, so adding constructor fields can undo it. The doc comment says so.
  • The signal-instance fields (7 per Block, Scope and lite proxy) are the next candidates. They were left in place because moving them would add an allocation per stamped scope in signal-enabled apps.
  • A pre-existing test gap is still open: nothing pins the per-render useEffectEvent version bump that invalidates payloads from abandoned attempts. Removing it passes every Effect Event test, before and after this change.
  • vtNearestBoundaryAncestor used to treat a LiteBlockImpl in the chain as a boundary, because a missing vt is not null. With rare: null on lite proxies, it now skips them.
  • Step 2 of the cold-mount plan is lite hookless control-flow arms. The prototype measured −4.4% on recursive-context; it comes in a separate PR.

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
Refactors core renderer Block shape and every boundary/Suspense/update-depth code path that touched the moved fields; behavior is intended to be identical but mistakes would show up as subtle suspension, use(), or max-update-depth failures.

Overview
Moves fourteen rarely used Block fields into a lazily allocated BlockRare record (block.rare / blockRare()), shrinking the hot BlockImpl constructor from 79 to 66 fields so ordinary mounts pay one null pointer instead of initializing Suspense/@try/<Activity>, use() thenables, fetch-tree warming, commit-callback update guards, useEffectEvent, and <ViewTransition> state up front.

Call sites that used block.vt, __trySlot, __suspenseHandler, nested-update counters, and similar are rewired to rare (with helpers like vtProps and extracted countNestedUpdate). LiteBlockImpl always exposes rare: null, fixing ancestor walks that previously misread missing ViewTransition props. Bundle raw budgets drop slightly; gzip may rise until a companion budget PR lands.

Adds regression coverage for use() replay when an Effect Event runs before it (per-render thenableIdx reset), and updates the signal transition coordinator plus perf-scan expectations for the new field name.

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

trueadm and others added 2 commits October 8, 2026 14:34
Fourteen BlockImpl fields served only Suspense/try/Activity boundaries,
use() thenables, fetch-tree warming, the commit-callback update guard,
useEffectEvent and ViewTransition. They now live on a `rare` record that
blockRare() allocates from one literal the first time a feature needs it.
BlockImpl drops from 79 to 66 fields and its constructor bytecode from 437
to 371 bytes; LiteBlockImpl carries `rare: null` so parentBlock walks stay
uniform.

Paired cold mounts (Chromium, 40 fresh pages): memo-wall 0.960, portal-swarm
0.981, recursive-context 0.985 against main. Adds a regression test for the
per-render use() call-position reset that now runs only when the record exists.

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 13:37
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • ❌ bundle-size: 30 value(s) exceed their committed budget
  • ❌ bundle-reachability: 59 value(s) exceed their committed budget
  • 🔴 bundle-size: 16 value(s) increased within budget
  • 🔴 bundle-reachability: 15 value(s) increased within budget

Compares 78750a077, the merge commit's first parent (main has moved 1 commit(s) past the pull request's recorded base e14fbdf9a) with 4ef522179 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.550 2.525 ±0.0% −0.0% … +1.7% ⚪ within noise
octane-tsrx replace 5.342 5.492 −0.9% −5.5% … +4.4% ⚪ within noise
octane-tsrx add 2.350 2.400 ±0.0% −3.9% … +4.3% ⚪ within noise
octane-tsrx update 0.122 0.121 −1.0% −1.4% … −0.5% ⚪ within noise
octane-tsrx select 0.005 0.005 +0.2% −0.5% … +1.0% ⚪ within noise
octane-tsrx swap 0.029 0.029 ±0.0% −1.2% … +0.6% ⚪ within noise
octane-tsrx remove 0.013 0.014 +1.0% −1.4% … +2.9% ⚪ within noise
octane-tsrx runlots 24.075 23.767 −0.8% −1.9% … +1.0% ⚪ within noise
octane-tsrx select_lots 0.006 0.006 +0.3% −0.8% … +1.4% ⚪ within noise
octane-tsrx clear 41.075 41.342 +0.8% −0.6% … +2.3% ⚪ within noise
octane-jsx run 3.308 3.283 −0.0% −2.9% … +1.5% ⚪ within noise
octane-jsx replace 5.817 5.800 +1.6% −5.1% … +3.5% ⚪ within noise
octane-jsx add 2.967 2.942 ±0.0% −0.0% … +1.3% ⚪ within noise
octane-jsx update 0.237 0.236 +0.3% −1.4% … +1.2% ⚪ within noise
octane-jsx select 0.123 0.122 +1.1% +0.5% … +1.4% ⚪ within noise
octane-jsx swap 0.216 0.221 +0.3% −2.2% … +2.1% ⚪ within noise
octane-jsx remove 0.193 0.196 −1.1% −3.5% … +0.9% ⚪ within noise
octane-jsx runlots 27.917 27.125 −0.7% −2.0% … +2.1% ⚪ within noise
octane-jsx select_lots 1.530 1.511 −1.7% −4.1% … −0.4% ⚪ within noise
octane-jsx clear 43.000 43.467 +0.8% −0.5% … +1.3% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

❌ 30 value(s) exceed their committed budget. Reduce the growth, or raise the budget in a separate pull request that names the bytes and the reason (CONTRIBUTING.md, "Size budgets").

target metric head budget over
octane-tsrx fw_raw 106,424 106,263 +161
octane-tsrx fw_gzip 34,676 34,605 +71
octane-tsrx js_raw 113,370 113,209 +161
octane-tsrx js_gzip 37,011 36,941 +70
octane-tsrx js_brotli 32,759 32,748 +11
octane-tsrx todo_fw_raw 117,141 116,976 +165
octane-tsrx todo_fw_gzip 37,620 37,520 +100
octane-tsrx todo_fw_brotli 33,209 33,149 +60
octane-tsrx todo_js_raw 121,759 121,594 +165
octane-tsrx todo_js_gzip 39,840 39,740 +100
octane-tsrx todo_js_brotli 35,090 35,035 +55
octane-tsrx chat_fw_raw 114,743 114,578 +165
octane-tsrx chat_fw_gzip 36,943 36,847 +96
octane-tsrx chat_fw_brotli 32,593 32,572 +21
octane-tsrx chat_js_raw 120,508 120,343 +165
octane-tsrx chat_js_gzip 39,658 39,563 +95
octane-tsrx chat_js_brotli 34,980 34,960 +20
octane-tsrx weather_fw_raw 134,959 134,743 +216
octane-tsrx weather_fw_gzip 43,206 43,088 +118
octane-tsrx weather_js_raw 157,113 156,897 +216
octane-tsrx weather_js_gzip 51,078 50,960 +118
octane-tsrx weather_js_brotli 44,515 44,510 +5
octane-tsrx bindings_fw_raw 341,438 341,255 +183
octane-tsrx bindings_fw_gzip 109,513 109,403 +110
octane-tsrx bindings_js_raw 689,076 688,893 +183
octane-tsrx bindings_js_gzip 225,178 225,069 +109
octane-jsx fw_raw 179,692 179,519 +173
octane-jsx fw_gzip 56,831 56,741 +90
octane-jsx js_raw 187,957 187,784 +173
octane-jsx js_gzip 59,687 59,599 +88
target metric base head Δ
octane-tsrx js_raw 113,436 113,370 −66 (−0.1%) 🟢
octane-tsrx js_gzip 36,973 37,011 +38 (+0.1%) 🔴
octane-tsrx js_brotli 32,755 32,759 +4 (+0.0%) 🔴
octane-tsrx app_gzip 2,337 2,335 −2 (−0.1%) 🟢
octane-tsrx app_brotli 2,035 2,032 −3 (−0.1%) 🟢
octane-tsrx fw_raw 106,490 106,424 −66 (−0.1%) 🟢
octane-tsrx fw_gzip 34,636 34,676 +40 (+0.1%) 🔴
octane-tsrx fw_brotli 30,720 30,727 +7 (+0.0%) 🔴
octane-tsrx todo_js_raw 121,821 121,759 −62 (−0.1%) 🟢
octane-tsrx todo_js_gzip 39,770 39,840 +70 (+0.2%) 🔴
octane-tsrx todo_js_brotli 35,018 35,090 +72 (+0.2%) 🔴
octane-tsrx todo_app_brotli 1,884 1,881 −3 (−0.2%) 🟢
octane-tsrx todo_fw_raw 117,203 117,141 −62 (−0.1%) 🟢
octane-tsrx todo_fw_gzip 37,550 37,620 +70 (+0.2%) 🔴
octane-tsrx todo_fw_brotli 33,134 33,209 +75 (+0.2%) 🔴
octane-tsrx chat_js_raw 120,570 120,508 −62 (−0.1%) 🟢
octane-tsrx chat_js_gzip 39,596 39,658 +62 (+0.2%) 🔴
octane-tsrx chat_js_brotli 34,948 34,980 +32 (+0.1%) 🔴
octane-tsrx chat_app_gzip 2,716 2,715 −1 (−0.0%) 🟢
octane-tsrx chat_app_brotli 2,385 2,387 +2 (+0.1%) 🔴
octane-tsrx chat_fw_raw 114,805 114,743 −62 (−0.1%) 🟢
octane-tsrx chat_fw_gzip 36,880 36,943 +63 (+0.2%) 🔴
octane-tsrx chat_fw_brotli 32,563 32,593 +30 (+0.1%) 🔴
octane-tsrx weather_js_raw 157,124 157,113 −11 (−0.0%) 🟢
octane-tsrx weather_js_gzip 50,989 51,078 +89 (+0.2%) 🔴
octane-tsrx weather_js_brotli 44,469 44,515 +46 (+0.1%) 🔴
octane-tsrx weather_app_brotli 6,648 6,649 +1 (+0.0%) 🔴
octane-tsrx weather_fw_raw 134,970 134,959 −11 (−0.0%) 🟢
octane-tsrx weather_fw_gzip 43,117 43,206 +89 (+0.2%) 🔴
octane-tsrx weather_fw_brotli 37,821 37,866 +45 (+0.1%) 🔴
octane-tsrx bindings_js_raw 689,120 689,076 −44 (−0.0%) 🟢
octane-tsrx bindings_js_gzip 225,106 225,178 +72 (+0.0%) 🔴
octane-tsrx bindings_js_brotli 191,300 191,467 +167 (+0.1%) 🔴
octane-tsrx bindings_app_gzip 115,667 115,665 −2 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 96,206 96,337 +131 (+0.1%) 🔴
octane-tsrx bindings_fw_raw 341,482 341,438 −44 (−0.0%) 🟢
octane-tsrx bindings_fw_gzip 109,439 109,513 +74 (+0.1%) 🔴
octane-tsrx bindings_fw_brotli 95,094 95,130 +36 (+0.0%) 🔴
octane-tsrx full_fw_raw 568,951 569,131 +180 (+0.0%) 🔴
octane-tsrx full_fw_gzip 171,327 171,478 +151 (+0.1%) 🔴
octane-tsrx full_fw_brotli 144,175 144,201 +26 (+0.0%) 🔴
octane-jsx js_raw 188,011 187,957 −54 (−0.0%) 🟢
octane-jsx js_gzip 59,608 59,687 +79 (+0.1%) 🔴
octane-jsx js_brotli 51,857 51,887 +30 (+0.1%) 🔴
octane-jsx app_gzip 2,857 2,856 −1 (−0.0%) 🟢
octane-jsx app_brotli 2,403 2,410 +7 (+0.3%) 🔴
octane-jsx fw_raw 179,746 179,692 −54 (−0.0%) 🟢
octane-jsx fw_gzip 56,751 56,831 +80 (+0.1%) 🔴
octane-jsx fw_brotli 49,454 49,477 +23 (+0.0%) 🔴
octane-jsx full_fw_raw 568,951 569,131 +180 (+0.0%) 🔴
octane-jsx full_fw_gzip 171,327 171,478 +151 (+0.1%) 🔴
octane-jsx full_fw_brotli 144,175 144,201 +26 (+0.0%) 🔴

8 other measured values are unchanged.

Public-import reachability bundles (bytes)

❌ 59 value(s) exceed their committed budget. Reduce the growth, or raise the budget in a separate pull request that names the bytes and the reason (CONTRIBUTING.md, "Size budgets").

target metric head budget over
cli-spa-starter raw 102,418 102,259 +159
cli-spa-starter gzip 34,150 34,056 +94
root-static-specialized raw 72,915 72,770 +145
root-static-specialized gzip 23,969 23,884 +85
root-static-specialized brotli 21,428 21,377 +51
root-chained-jsx raw 74,792 74,648 +144
root-chained-jsx gzip 24,461 24,386 +75
root-static raw 165,774 165,601 +173
root-static gzip 52,437 52,353 +84
root-static-local raw 72,914 72,769 +145
root-static-local gzip 23,953 23,871 +82
root-callback-local raw 74,818 74,674 +144
root-callback-local gzip 24,455 24,390 +65
root-callback-local brotli 21,922 21,916 +6
hooks-state raw 84,636 84,491 +145
hooks-state gzip 27,923 27,842 +81
hooks-state brotli 24,942 24,823 +119
prop-attributes raw 84,889 84,745 +144
prop-attributes gzip 27,915 27,840 +75
prop-attributes brotli 24,931 24,869 +62
context raw 96,821 96,676 +145
context gzip 31,608 31,540 +68
hydrate-root raw 138,288 138,145 +143
hydrate-root gzip 44,334 44,248 +86
hydrate-root brotli 38,784 38,747 +37
deferred-hydration raw 221,604 221,413 +191
deferred-hydration gzip 69,886 69,758 +128
hydrate-frame raw 366,370 366,118 +252
hydrate-frame gzip 113,708 113,571 +137
hydrate-frame brotli 97,281 97,254 +27
suspense-transition raw 141,824 141,605 +219
suspense-transition gzip 44,917 44,796 +121
component-owned-effects raw 77,277 77,133 +144
component-owned-effects gzip 25,297 25,228 +69
component-owned-effects brotli 22,636 22,600 +36
binding-hooks raw 83,135 82,991 +144
binding-hooks gzip 27,547 27,484 +63
binding-base-ui-vite raw 199,981 199,804 +177
binding-base-ui-vite gzip 62,919 62,819 +100
binding-base-ui-esbuild raw 215,512 215,335 +177
binding-base-ui-esbuild gzip 69,867 69,786 +81
binding-radix-vite raw 202,053 201,839 +214
binding-radix-vite gzip 63,513 63,428 +85
binding-radix-esbuild raw 217,373 217,159 +214
binding-radix-esbuild gzip 70,464 70,336 +128
binding-mantine-hooks-vite raw 86,730 86,548 +182
binding-mantine-hooks-vite gzip 28,525 28,430 +95
binding-mantine-hooks-vite brotli 25,476 25,371 +105
binding-mantine-hooks-esbuild raw 91,109 90,921 +188
binding-mantine-hooks-esbuild gzip 30,692 30,573 +119
binding-mantine-hooks-esbuild brotli 27,372 27,258 +114
binding-apollo-client-vite raw 342,470 342,256 +214
binding-apollo-client-vite gzip 105,236 105,103 +133
binding-apollo-client-esbuild raw 365,693 365,478 +215
binding-apollo-client-esbuild gzip 116,259 116,124 +135
binding-usehooks-ts-vite raw 87,500 87,318 +182
binding-usehooks-ts-vite gzip 28,747 28,669 +78
binding-usehooks-ts-esbuild raw 91,883 91,689 +194
binding-usehooks-ts-esbuild gzip 30,937 30,817 +120
target metric base head Δ
cli-spa-starter raw 102,484 102,418 −66 (−0.1%) 🟢
cli-spa-starter gzip 34,091 34,150 +59 (+0.2%) 🔴
cli-spa-starter brotli 29,927 30,041 +114 (+0.4%) 🔴
root-static-specialized raw 72,997 72,915 −82 (−0.1%) 🟢
root-static-specialized gzip 23,929 23,969 +40 (+0.2%) 🔴
root-static-specialized brotli 21,375 21,428 +53 (+0.2%) 🔴
root-chained-jsx raw 74,874 74,792 −82 (−0.1%) 🟢
root-chained-jsx gzip 24,422 24,461 +39 (+0.2%) 🔴
root-chained-jsx brotli 21,874 21,876 +2 (+0.0%) 🔴
root-static raw 165,828 165,774 −54 (−0.0%) 🟢
root-static gzip 52,384 52,437 +53 (+0.1%) 🔴
root-static brotli 45,599 45,652 +53 (+0.1%) 🔴
root-static-local raw 72,996 72,914 −82 (−0.1%) 🟢
root-static-local gzip 23,914 23,953 +39 (+0.2%) 🔴
root-static-local brotli 21,380 21,432 +52 (+0.2%) 🔴
root-callback-local raw 74,900 74,818 −82 (−0.1%) 🟢
root-callback-local gzip 24,428 24,455 +27 (+0.1%) 🔴
root-callback-local brotli 21,826 21,922 +96 (+0.4%) 🔴
hooks-state raw 84,718 84,636 −82 (−0.1%) 🟢
hooks-state gzip 27,867 27,923 +56 (+0.2%) 🔴
hooks-state brotli 24,867 24,942 +75 (+0.3%) 🔴
prop-attributes raw 84,972 84,889 −83 (−0.1%) 🟢
prop-attributes gzip 27,855 27,915 +60 (+0.2%) 🔴
prop-attributes brotli 24,844 24,931 +87 (+0.4%) 🔴
context raw 96,901 96,821 −80 (−0.1%) 🟢
context gzip 31,561 31,608 +47 (+0.1%) 🔴
context brotli 28,043 28,071 +28 (+0.1%) 🔴
hydrate-root raw 138,372 138,288 −84 (−0.1%) 🟢
hydrate-root gzip 44,271 44,334 +63 (+0.1%) 🔴
hydrate-root brotli 38,697 38,784 +87 (+0.2%) 🔴
deferred-hydration raw 221,647 221,604 −43 (−0.0%) 🟢
deferred-hydration gzip 69,812 69,886 +74 (+0.1%) 🔴
deferred-hydration brotli 60,165 60,269 +104 (+0.2%) 🔴
hydrate-frame raw 366,345 366,370 +25 (+0.0%) 🔴
hydrate-frame gzip 113,606 113,708 +102 (+0.1%) 🔴
hydrate-frame brotli 97,124 97,281 +157 (+0.2%) 🔴
suspense-transition raw 141,832 141,824 −8 (−0.0%) 🟢
suspense-transition gzip 44,827 44,917 +90 (+0.2%) 🔴
suspense-transition brotli 39,342 39,390 +48 (+0.1%) 🔴
component-owned-effects raw 77,359 77,277 −82 (−0.1%) 🟢
component-owned-effects gzip 25,247 25,297 +50 (+0.2%) 🔴
component-owned-effects brotli 22,544 22,636 +92 (+0.4%) 🔴
binding-hooks raw 83,217 83,135 −82 (−0.1%) 🟢
binding-hooks gzip 27,512 27,547 +35 (+0.1%) 🔴
binding-hooks brotli 24,559 24,623 +64 (+0.3%) 🔴
binding-base-ui-vite raw 200,031 199,981 −50 (−0.0%) 🟢
binding-base-ui-vite gzip 62,849 62,919 +70 (+0.1%) 🔴
binding-base-ui-vite brotli 54,673 54,671 −2 (−0.0%) 🟢
binding-base-ui-esbuild raw 215,562 215,512 −50 (−0.0%) 🟢
binding-base-ui-esbuild gzip 69,805 69,867 +62 (+0.1%) 🔴
binding-base-ui-esbuild brotli 60,598 60,670 +72 (+0.1%) 🔴
binding-aria-esbuild brotli 2,979 2,981 +2 (+0.1%) 🔴
binding-radix-vite raw 202,066 202,053 −13 (−0.0%) 🟢
binding-radix-vite gzip 63,452 63,513 +61 (+0.1%) 🔴
binding-radix-vite brotli 55,142 55,204 +62 (+0.1%) 🔴
binding-radix-esbuild raw 217,386 217,373 −13 (−0.0%) 🟢
binding-radix-esbuild gzip 70,384 70,464 +80 (+0.1%) 🔴
binding-radix-esbuild brotli 61,151 61,190 +39 (+0.1%) 🔴
binding-mantine-hooks-vite raw 86,775 86,730 −45 (−0.1%) 🟢
binding-mantine-hooks-vite gzip 28,463 28,525 +62 (+0.2%) 🔴
binding-mantine-hooks-vite brotli 25,384 25,476 +92 (+0.4%) 🔴
binding-mantine-hooks-esbuild raw 91,148 91,109 −39 (−0.0%) 🟢
binding-mantine-hooks-esbuild gzip 30,607 30,692 +85 (+0.3%) 🔴
binding-mantine-hooks-esbuild brotli 27,234 27,372 +138 (+0.5%) 🔴
binding-apollo-client-vite raw 342,483 342,470 −13 (−0.0%) 🟢
binding-apollo-client-vite gzip 105,143 105,236 +93 (+0.1%) 🔴
binding-apollo-client-vite brotli 91,892 91,864 −28 (−0.0%) 🟢
binding-apollo-client-esbuild raw 365,705 365,693 −12 (−0.0%) 🟢
binding-apollo-client-esbuild gzip 116,136 116,259 +123 (+0.1%) 🔴
binding-apollo-client-esbuild brotli 101,229 101,320 +91 (+0.1%) 🔴
binding-usehooks-ts-vite raw 87,545 87,500 −45 (−0.1%) 🟢
binding-usehooks-ts-vite gzip 28,698 28,747 +49 (+0.2%) 🔴
binding-usehooks-ts-vite brotli 25,617 25,685 +68 (+0.3%) 🔴
binding-usehooks-ts-esbuild raw 91,916 91,883 −33 (−0.0%) 🟢
binding-usehooks-ts-esbuild gzip 30,848 30,937 +89 (+0.3%) 🔴
binding-usehooks-ts-esbuild brotli 27,464 27,548 +84 (+0.3%) 🔴

35 other measured values are unchanged.

@trueadm

trueadm commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator Author

The bundle-size check fails for two reasons:

  1. Budget-first window. ci: budget native producer pacing separately #1891 raised budgets ahead of its consumer, fix: coalesce and pace ready signal producers #1875, which hasn't merged yet. This branch doesn't contain fix: coalesce and pace ready signal producers #1875's bytes, so the ratchet asks this PR to lower cli-spa-starter raw from 102235 to 102126. Lowering it here would undo ci: budget native producer pacing separately #1891's raise for fix: coalesce and pace ready signal producers #1875, so I'm leaving it alone.
  2. Real gzip growth from this change. Local measurements match CI byte for byte on main's rows. Gzip grows about 33–117 B per scenario, and raw shrinks 8–85 B.

Next steps, once #1875 merges:

  • Merge main into this branch and re-measure with both changes in place.
  • Open a budget-only PR that raises only the gzip and brotli ceilings this change exceeds, and lists every value.
  • Merge that PR immediately before this one. Any raw lowering the ratchet still asks for after fix: coalesce and pace ready signal producers #1875 lands stays in this PR.

@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-mcp d0b3f9c Commit Preview URL

Branch Preview URL
Oct 08 2026, 02:08 PM

@cloudflare-workers-and-pages

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 d0b3f9c Commit Preview URL

Branch Preview URL
Oct 08 2026, 02:06 PM

trueadm and others added 4 commits October 8, 2026 16:07
@trueadm
trueadm merged commit cbc1e8e into main Oct 8, 2026
1 of 2 checks passed
@trueadm
trueadm deleted the fix/slim-block-fields branch October 8, 2026 15:30
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.

1 participant