Repository navigation
ci(bundle-size): raise budgets for in-place Block signal owners - #1858
Merged
Merged
Conversation
Raise-only budgets for #1857, measured on its head and merged as max(main, measured + 32). Signal-free apps grow about +155 raw / +37 gzip and bundles that can reach the signal capability about +256 raw / +70-111 gzip, for 1.7% faster cold and 3.8% faster warm hydration of a ~1,940-Block signal-enabled app frame. Co-Authored-By: Claude Opus 5.5 <[email protected]>
6 of 7 tasks
trueadm
marked this pull request as ready for review
October 7, 2026 19:52
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website-mcp | e000a69 | Commit Preview URL Branch Preview URL |
Oct 07 2026, 07:58 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website | e000a69 | Commit Preview URL Branch Preview URL |
Oct 07 2026, 07:57 PM |
…ration-block-entry-budget # Conflicts: # benchmarks/bundle-size/app-budgets.json # benchmarks/bundle-size/minimal-budgets.json
trueadm
added a commit
that referenced
this pull request
Oct 7, 2026
Conflicts: app-budgets.json and minimal-budgets.json. #1858 raised budgets ahead of #1857 (in-place Block signal owners, still open), so take its values in every conflicting row; lowering them here would undo a raise #1857 depends on. That includes hydrate-frame (365,194 raw), which clears the over-budget failure main had. This branch keeps its lower bindings app gzip and one app brotli, rows #1858 left alone. Until #1857 lands, the tight-budget check measures well under the raised rows, so shard 1's "Verify every bundle budget" step is expected to fail here, as on any PR in that window. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 7, 2026
#1858 raised 65 budgets ahead of #1857 (in-place Block signal owners), which is still open: it is behind main, fails format:check under #1399's formatter, and its own ratchet is off by 2 gzip bytes. Until it lands, every push to main enforces the downward ratchet against those unfilled raises, so main 21f911d (#1399) failed test shard 1/4 at "Verify every bundle budget": cli-spa-starter raw budget 101,976 must ratchet to 101,825. Rewrite every budget with run-minimal.mjs and run.mjs --write-budgets on main 21f911d (measured + 32 raw/gzip, + 256 brotli): 65 lowerings, no raises, the same 65 entries #1858 raised. #1857 re-lands its raise in a budget-only change immediately before it merges. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 7, 2026
…eads (#1863) Budget-only raise for #1862. That change lets hydration skip rendering a native signal reader again when its live value is unchanged. hydrate-frame, the only minimal scenario that hydrates with native signal reads, grows by +1,146 raw, +488 gzip and +249 brotli. Each value is the current budget plus that delta, so the raise from #1858 for #1857 is kept. Co-authored-by: Claude Opus 5.5 <[email protected]>
3 of 4 tasks
trueadm
added a commit
that referenced
this pull request
Oct 7, 2026
#1857 (b6c040c) merged without the budget-only raise that 96c4096 took back while it was pending, so main is over its committed byte budgets again. This restores that raise as measured on main b6c040c with run-minimal.mjs and run.mjs --write-budgets (measured + 32 raw/gzip, + 256 brotli): 61 raises and 4 brotli lowerings, budget files only. - cli-spa-starter raw 101,825 -> 101,976 (+151), the same value #1858 set - signal-free roots and apps about +151 to +168 raw, +37 to +58 gzip - signal-capable bundles (root-static, bindings, Base UI, Radix, Apollo) about +255 to +312 raw, +70 to +115 gzip - brotli lowered 2 to 34 bytes on four rows the owner frame shrank Co-Authored-By: Claude Opus 5.5 <[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
Budget-only raise for #1857, which makes each Block render in its signal owner without re-entering
renderBlock. PerCONTRIBUTING.md("Size budgets"), the raise lands on its own. This PR changes only the three budget files; every value ismax(main, measured on #1857 + 32)(brotli is unchanged), so nothing is lowered.65 budgets rise against
main188d60b, which includes #1854 and #1855. The pattern:rows,todo,chat,weather) and most minimal rootsbindings,rows-jsx,root-static,hydrate-frame, Base UI, Radix and Apollo bindings)hydrate-rootWhere the bytes go, measured on
rows:renderBlock: about +61 raw and +37 gzip. It ships in every app becauserenderBlockis reachable everywhere. The enter/restore pair itself is installed byenableSignalDocument, so only bundles that can reach the signal capability pay for those two functions and the frame object (the extra ~+100 raw / ~+60 gzip in the second row).Scope.signalOwnerfield instead of aWeakMap: +94 raw and 0 gzip. Property names do not minify, so 17scope.signalOwnersites are longer thanmap.get(scope). Dropping this part from perf(runtime): enter each Block's signal owner in place during render #1857 would remove most of the signal-free raw raise, but none of the gzip.Why the growth is worth it
The change is measured on the new
app-frame-hydrationbenchmark. It hydrates about 1,650 Blocks with signals and native reads enabled, shaped after a production app-frame hydration audit. Samples are interleaved withorigin/main188d60b in the same Chromium, 50 pairs, 4× CPU throttle:frame(leaf signal reads)frame-live-sections(section-level reads)In signal-enabled apps,
renderBlockentries per render drop from 2 to 1, andrunWithSignalOwnercalls drop from 1,798 to 95 perframehydration. Bundles that never enable signals gain no speed, and pay about +155 raw / +37 gzip.Gating the whole owner path out of signal-free apps would remove that cost, but needs the larger "signal flag modules" reachability work from #1801.
Validation
node benchmarks/bundle-size/run.mjs --write-budgetsandnode benchmarks/bundle-size/run-minimal.mjs --write-budgetson perf(runtime): enter each Block's signal owner in place during render #1857 merged withorigin/main188d60b, merged raise-only against thatmain;node benchmarks/bundle-size/budget-raises.mjs --base origin/mainreports 65 raises in a budget-only changepnpm format:check(JSON only; formatting unchanged)pnpm typecheck(no source change)pnpm test(left to CI)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
JSON-only CI threshold updates with no application code; temporary window where bundle checks use higher ceilings until #1857 merges.
Overview
Raises bundle-size CI budgets only (no runtime or framework source changes) so the follow-up in-place Block signal-owner work (#1857) can land without failing the size ratchet.
Updates 58 entries across
app-budgets.json,jsx-budgets.json, andminimal-budgets.json: raw and gzip ceilings go up by roughly +150–+260 raw and +37–+110 gzip depending on whether the bundle can reach signal capability; brotli values are unchanged. Each new limit ismax(main, measured on #1857 + 32)so nothing is lowered.Intended to merge before #1857; until that lands, other PRs compare against these higher floors.
Reviewed by Cursor Bugbot for commit 4e92b50. Bugbot is set up for automated code reviews on this repo. Configure here.