Repository navigation
ci(bundle-size): raise budgets for the root journal's nested-creation skip (#1892) - #1893
Conversation
… skip (#1892) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…se-budgets-root-journal # Conflicts: # benchmarks/bundle-size/jsx-budgets.json # benchmarks/bundle-size/minimal-budgets.json
Benchmark report
Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)❌ 6 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").
No changes across 60 measured values. Public-import reachability bundles (bytes)❌ 23 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").
No changes across 111 measured values. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website | a1f52b6 | Commit Preview URL Branch Preview URL |
Oct 08 2026, 02:11 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website-mcp | a1f52b6 | Commit Preview URL Branch Preview URL |
Oct 08 2026, 02:12 PM |
…-journal # Conflicts: # benchmarks/bundle-size/app-budgets.json # benchmarks/bundle-size/jsx-budgets.json # benchmarks/bundle-size/minimal-budgets.json
…-journal # Conflicts: # benchmarks/bundle-size/app-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]>
…udgets #1888 (the split transition cue) merged ahead of its budget-only raise #1887, so main's transition-using rows exceed their ceilings. #1893 has since raised budgets for #1892, which is still open, but measured without #1888's growth. Raise only the 30 rows still over their ceilings on main 1e74902, to measured + 32 raw/gzip (+ 256 brotli) from run-minimal.mjs and run.mjs --write-budgets, and keep every other value, including #1893's pending raises: - suspense-transition, Base UI, Radix and Apollo bindings, bindings app: about +1.12 to +1.15 kB raw, +0.30 to +0.37 kB gzip - hydrate-frame +63 raw / +37 gzip; root-static brotli +279 The 62 rows #1893 raised stay above their ratchet floor until #1892 lands. This supersedes #1887. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
… a row (#1890) * perf(octane): copy a keyed reorder's record directly until it relinks 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]> * perf(octane): look a keyed list's record up only when its window has 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]> * perf(octane): read a keyed list's record from its undo entry inline 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]> * ci(bench): lower the budgets by this change's measured saving over #1891 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]> * ci(bench): re-lower the budgets this change saves on after #1875 landed 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]> * ci(bench): re-lower the budgets this change saves on over #1893 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]> * ci(bench): re-lower the budgets this change saves on over 87d9f95 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]> * ci(bench): lower the budgets by this change's saving over main's ratchet 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]> * ci(bench): lower the budgets by this change's saving after #1892 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]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: domgan-oai <[email protected]>
…sition test (#1902) "commits without animation when a pre-render passive adds urgent sibling work" relies on a passive effect from a sync commit still being pending when the transition's host task (#1873) starts rendering. In the test, that passive is drained at the next animation frame, which then posts to the runtime's long-lived post-paint port. When jsdom's frame timer comes due before the transition task runs, as it can on a loaded CI worker, the passive drains first and the transition animates. The test's capture mock never runs the update, so the left scope stays 'initial', and `vi.waitFor` timed out in octane-prod on #1893. The test now fakes setTimeout and requestAnimationFrame, so no frame and no fallback timer can drain the passive early. It waits for the transition with a host task posted after the runtime's, not by polling, because `vi.waitFor` would advance the fake timers. The host-task `nextTask()` helper moves to tests/_helpers.ts. It replaces the local copies in view-transition.test.ts and view-transition-matching.test.ts. #1875 already made the matching tests wait for the native transition start. Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
mainabe9b42 with and without perf(octane): skip journal entries for Blocks a root render discards with their parent #1892 (--write-budgetson both trees). Each new cap ismain's current cap plus perf(octane): skip journal entries for Blocks a root render discards with their parent #1892's measured growth for that value.Why
#1892 stops a root render from journaling the creation and renders of Blocks it creates inside another Block it created. After the journal replays, a rollback sweeps the render's created Blocks so that none can leak. The bytes are the inline ancestor-stamp tests in
createdInRootRenderandrenderBlockInner(inline so the change adds no function calls; the js-framework work counters are unchanged) and the rollback sweep. That logic lives in the root-render core that every bundle carries, so no capability can hold it.What the growth buys (paired, interleaved, A/A-controlled; details in #1892):
mount_closed: −12%. Warm mount: −2%.partial_remount: −3%.Merge order
mainis currently over its own budgets until ci(bundle-size): budget combined transition cues and native producers #1887 (budget-only raise for fix(octane): commit the pending cue apart from its component's transition (#1864) #1888 and fix: coalesce and pace ready signal producers #1875) lands. Each cap here ismain's cap plus perf(octane): skip journal entries for Blocks a root render discards with their parent #1892's growth, so the two raises compose. If ci(bundle-size): budget combined transition cues and native producers #1887 merges first, this PR conflicts on the rows both touch; the resolution is ci(bundle-size): budget combined transition cues and native producers #1887's cap plus the same growth.Changes
minimal-budgets.jsoncli-spa-starter.rawminimal-budgets.jsoncli-spa-starter.gzipminimal-budgets.jsoncli-spa-starter.brotliminimal-budgets.jsonroot-static-specialized.rawminimal-budgets.jsonroot-static-specialized.gzipminimal-budgets.jsonroot-chained-jsx.rawminimal-budgets.jsonroot-chained-jsx.gzipminimal-budgets.jsonroot-static.rawminimal-budgets.jsonroot-static.gzipminimal-budgets.jsonroot-static-local.rawminimal-budgets.jsonroot-static-local.gzipminimal-budgets.jsonroot-static-local.brotliminimal-budgets.jsonroot-callback-local.rawminimal-budgets.jsonroot-callback-local.gzipminimal-budgets.jsonhooks-state.rawminimal-budgets.jsonhooks-state.gzipminimal-budgets.jsonprop-attributes.rawminimal-budgets.jsonprop-attributes.gzipminimal-budgets.jsoncontext.rawminimal-budgets.jsoncontext.gzipminimal-budgets.jsoncontext.brotliminimal-budgets.jsonhydrate-root.rawminimal-budgets.jsonhydrate-root.gzipminimal-budgets.jsondeferred-hydration.rawminimal-budgets.jsondeferred-hydration.gzipminimal-budgets.jsondeferred-hydration.brotliminimal-budgets.jsonhydrate-frame.rawminimal-budgets.jsonhydrate-frame.gzipminimal-budgets.jsonsuspense-transition.rawminimal-budgets.jsonsuspense-transition.gzipminimal-budgets.jsonsuspense-transition.brotliminimal-budgets.jsoncomponent-owned-effects.rawminimal-budgets.jsoncomponent-owned-effects.gzipminimal-budgets.jsonbinding-hooks.rawminimal-budgets.jsonbinding-hooks.gzipminimal-budgets.jsonbinding-hooks.brotliminimal-budgets.jsonbinding-base-ui-vite.rawminimal-budgets.jsonbinding-base-ui-vite.gzipminimal-budgets.jsonbinding-base-ui-vite.brotliminimal-budgets.jsonbinding-base-ui-esbuild.rawminimal-budgets.jsonbinding-base-ui-esbuild.gzipminimal-budgets.jsonbinding-base-ui-esbuild.brotliminimal-budgets.jsonbinding-radix-vite.rawminimal-budgets.jsonbinding-radix-vite.gzipminimal-budgets.jsonbinding-radix-vite.brotliminimal-budgets.jsonbinding-radix-esbuild.rawminimal-budgets.jsonbinding-radix-esbuild.gzipminimal-budgets.jsonbinding-radix-esbuild.brotliminimal-budgets.jsonbinding-mantine-hooks-vite.rawminimal-budgets.jsonbinding-mantine-hooks-vite.gzipminimal-budgets.jsonbinding-mantine-hooks-esbuild.rawminimal-budgets.jsonbinding-mantine-hooks-esbuild.gzipminimal-budgets.jsonbinding-apollo-client-vite.rawminimal-budgets.jsonbinding-apollo-client-vite.gzipminimal-budgets.jsonbinding-apollo-client-vite.brotliminimal-budgets.jsonbinding-apollo-client-esbuild.rawminimal-budgets.jsonbinding-apollo-client-esbuild.gzipminimal-budgets.jsonbinding-usehooks-ts-vite.rawminimal-budgets.jsonbinding-usehooks-ts-vite.gzipminimal-budgets.jsonbinding-usehooks-ts-vite.brotliminimal-budgets.jsonbinding-usehooks-ts-esbuild.rawminimal-budgets.jsonbinding-usehooks-ts-esbuild.gzipminimal-budgets.jsonbinding-usehooks-ts-esbuild.brotliapp-budgets.jsonrows.framework.rawapp-budgets.jsonrows.framework.gzipapp-budgets.jsonrows.framework.brotliapp-budgets.jsonrows.total.rawapp-budgets.jsonrows.total.gzipapp-budgets.jsontodo.framework.rawapp-budgets.jsontodo.framework.gzipapp-budgets.jsontodo.total.rawapp-budgets.jsontodo.total.gzipapp-budgets.jsonchat.framework.rawapp-budgets.jsonchat.framework.gzipapp-budgets.jsonchat.total.rawapp-budgets.jsonchat.total.gzipapp-budgets.jsonweather.framework.rawapp-budgets.jsonweather.framework.gzipapp-budgets.jsonweather.framework.brotliapp-budgets.jsonweather.total.rawapp-budgets.jsonweather.total.gzipapp-budgets.jsonweather.total.brotliapp-budgets.jsonbindings.framework.rawapp-budgets.jsonbindings.framework.gzipapp-budgets.jsonbindings.framework.brotliapp-budgets.jsonbindings.total.rawapp-budgets.jsonbindings.total.gzipapp-budgets.jsonbindings.total.brotlijsx-budgets.jsonframework.rawjsx-budgets.jsonframework.gzipjsx-budgets.jsontotal.rawjsx-budgets.jsontotal.gzipValidation
node benchmarks/bundle-size/run-minimal.mjs --write-budgetsandnode benchmarks/bundle-size/run.mjs --write-budgets octane-tsrx octane-jsxonmainabe9b42 and on perf(octane): skip journal entries for Blocks a root render discards with their parent #1892 merged with it. Each raise is the difference between the two measurements.node benchmarks/bundle-size/budget-raises.mjs --base origin/mainpasses: only budget files change.perf-review: not applicable (budget files only).Risk / follow-ups
Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Budget JSON only; no production code, auth, or data paths—CI may allow slightly larger bundles until #1892 merges.
Overview
Raises CI bundle-size ceilings across
app-budgets.json,jsx-budgets.json, andminimal-budgets.jsonso the ratchet stays green when #1892 lands. There is no runtime or framework code in this PR—only numeric budget updates.Framework and total raw/gzip/brotli limits go up by roughly ~258–262 raw, ~24–93 gzip, and ~18–140 brotli bytes on affected rows (sample apps like rows/todo/chat/weather/bindings, the JSX benchmark, and many minimal scenarios). Caps were derived as main’s current budget plus #1892’s measured growth per metric, not a blanket bump.
Merge order: land this immediately before #1892; merging it alone temporarily loosens ceilings until the follow-up ships.
Reviewed by Cursor Bugbot for commit cc761ad. Bugbot is set up for automated code reviews on this repo. Configure here.