Repository navigation
Conversation
Make room for resolving a component's signal handles from its nested
`@{ … }` blocks: about 70 minified bytes in client owner creation and 159 on
the server render path. Only raised values; no budget is lowered.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
2 of 5 tasks
trueadm
marked this pull request as ready for review
October 5, 2026 11:59
Contributor
Benchmark report🟢 No budget breaches, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)
56 other measured values are unchanged. Public-import reachability bundles (bytes)No changes across 105 measured values. |
…l-owner-budget # Conflicts: # benchmarks/bundle-size/minimal-budgets.json
This was referenced Oct 5, 2026
Merged
#1761 now resolves a hookless component's scope from its DOM stand-in, so a renderer the component renders links to it: 75 more raw bytes in client owner creation. Only raised values; no budget is lowered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 5, 2026
…l-owner-budget # Conflicts: # benchmarks/bundle-size/app-budgets.json # benchmarks/bundle-size/minimal-budgets.json
…rement The CI runner measures #1761's bindings app at 204,213 total brotli bytes, 6 over the committed budget. The local measurement fits, because brotli output differs slightly between environments; raw and gzip match exactly. Set it to CI's measurement + 256. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 5, 2026
* ci(bench): raise byte budgets for the nested-block signal owner fix
Make room for resolving a component's signal handles from its nested
`@{ … }` blocks: about 70 minified bytes in client owner creation and 159 on
the server render path. Only raised values; no budget is lowered.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* ci(bench): raise byte budgets for the children signal owner fix
Compiled children now record the owner of the template that authored them,
and scopeSignalOwner links their owner, or a context provider's, to it. That
adds about 112-151 raw bytes to every client bundle and 171 to server-render.
Values are measured on the fix branch plus 32 raw/gzip and 256 brotli, and
only raise #1760's values.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
…l-owner-budget # Conflicts: # benchmarks/bundle-size/app-budgets.json # benchmarks/bundle-size/jsx-budgets.json # benchmarks/bundle-size/minimal-budgets.json
Collaborator
Author
2 of 3 tasks
trueadm
added a commit
that referenced
this pull request
Oct 5, 2026
#1761 (#1793) #1782 measured the #1764 fix on its own, and #1760 measured #1761 on its own. With #1761 now on main, adding the fix overruns 47 budgets by up to about 135 raw bytes. Each value is measured on main 9c84293 with the fix applied, plus the standard headroom. Co-authored-by: Claude Opus 5.5 <[email protected]>
This branch was previously deployed
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
This PR only raises byte budgets: 75 values across
minimal-budgets.json,app-budgets.jsonandjsx-budgets.json. They make room for #1761, the nested-block signal owner fix. That fix makes a component'ssignal$/derived$/query$handles resolve to the component's own cells when a nested@{ … }block reads them.Merge this PR first, then merge main into #1761. CONTRIBUTING "Size budgets" keeps a raise out of the change that needs it, and
budget-raises.mjsenforces that.Why
Why the bytes are worth it. On main, a nested block that reads its component's query starts a second request, in the browser and on the server, and it computes from a second copy of the component's signals. For example:
On main,
loadruns twice, and after a click the block still shows1valuewhile the component's count is 2. Hydration also refetches instead of resuming the server's result.docs/signals.mdalready promises this for directive arms and keyed rows. The fix applies the same rule to nested blocks.Why it cannot be smaller.
scopeSignalOwnerwhen an owner is first created.renderBlockcalls that function for every block once a document signal owner exists, so it sits in the core graph. The block is marked wherechildSlotstamps signal identity, inside its existingSIGNAL_BINDINGS_ENABLED || signalDocumentEnabledbranch.enableSignalBindings: gating these links on that call would miss instance declarations from plain hook modules, which enable signals throughoctane/signalsinstead.'t:'invocation site for render functions rendered as children;@{ … }blocks #1761, +14 raw);childrenat owner creation, with no per-mount state.serverSignalOwner.@{ … }blocks #1761's regression tests inhydration/signal-declaration-owner.test.ts.Changes
Measured with
node benchmarks/bundle-size/run-minimal.mjsandnode benchmarks/bundle-size/run.mjs octane-tsrx octane-jsxon main e233e4a (after #1762 lowered budgets), with and without #1761 (head 17fa234, which includes that main). The new values come from--write-budgetswith the fix applied: measured + 32 raw/gzip, or + 256 brotli. Only raised values are kept; no budget is lowered. This branch merges main e233e4a, so every raise builds on #1762's lowered values. #1762 does not move this code out of signal-free bundles.cli-spa-starter,root-*,hooks-state,context,hydrate-root, …)root-static,binding-base-ui-*,binding-radix-*,binding-apollo-client-*)server-renderBrotli moves by at most +163 bytes (
binding-base-ui-esbuild), inside its 256-byte margin except where main's brotli headroom was already smaller. Only those breached brotli values are raised.One value comes from CI rather than a local run. The bindings app's total brotli measures 204,213 bytes on the CI runner but fits locally, because brotli output differs slightly between environments (raw and gzip match exactly). It is set to CI's measurement + 256 = 204,469.
Validation
pnpm format:checkpnpm typecheckpnpm test@{ … }blocks #1761 applied,run-minimal.mjs --budgetsandrun.mjs --budgets octane-tsrx octane-jsxhold against these values.budget-raises.mjs --base origin/mainreports "75 raise(s) in a budget-only change". Against main, this branch changes only the three budget files.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Touches only benchmark budget JSON used by CI; no application or framework runtime behavior changes in this PR.
Overview
Raises bundle-size CI budgets only so the nested-block signal owner fix (octane#1761) can merge without failing size checks. This PR does not change runtime code.
75 budget values go up across
minimal-budgets.json,app-budgets.json, andjsx-budgets.json, using measured sizes from the fix branch plus the repo’s raw/gzip (+32) and brotli (+256) margins. Client scenarios gain roughly +158–180 raw / +42–87 gzip;server-rendergains +159 raw / +72 gzip; app and JSX framework chunks move by similar amounts (bindings brotli uses a CI-measured value where local brotli differed). Only limits are raised; none are lowered.Merge this before #1761 so
budget-raises.mjskeeps the byte increase in a dedicated budget PR per CONTRIBUTING.Reviewed by Cursor Bugbot for commit f20aba2. Bugbot is set up for automated code reviews on this repo. Configure here.