Repository navigation
ci(bench): raise byte budgets for memo context through lightweight scopes - #1709
Merged
Merged
Conversation
…opes Budget-only raise for #1696, which fixes #1695. LiteBlockImpl now copies its parent's memoInChain, adding 31 raw bytes to every bundle that mounts a lightweight component. Each raised value is #1696's measured bytes on its head merged with main 77504c1, plus the usual headroom. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
trueadm
marked this pull request as ready for review
October 4, 2026 15:36
Contributor
Benchmark report🟢 No budget breaches, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operations
All 20 timed operations (19 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)
50 other measured values are unchanged. Public-import reachability bundles (bytes)No changes across 105 measured values. |
trueadm
added a commit
that referenced
this pull request
Oct 4, 2026
Main took #1709, which raised the same app budgets for #1696. Re-measure #1702 on its head da7c31d (merged with main c16fe6d), and keep #1709's reservation for #1696 on top of measured + 32, so the two fixes can land in either order. chat.framework.brotli no longer needs a raise. Co-Authored-By: Claude Opus 5.5 <[email protected]>
2 of 5 tasks
trueadm
added a commit
that referenced
this pull request
Oct 4, 2026
…1711) * ci(bench): raise app byte budgets for the superseded pending arm fix Budget-only raise for #1702, which fixes #1698. Each raised value is the measured production bytes on #1702's head f028149 (merged with main 77504c1) plus the usual headroom: 32 raw and gzip, 256 brotli. Only the 17 breached values move. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): re-measure the superseded pending arm budgets on current main Main took #1709, which raised the same app budgets for #1696. Re-measure #1702 on its head da7c31d (merged with main c16fe6d), and keep #1709's reservation for #1696 on top of measured + 32, so the two fixes can land in either order. chat.framework.brotli no longer needs a raise. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- 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
Budget-only raise for #1696, which fixes #1695. Merge this PR first, then merge main into #1696. 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
memoboundary that bails on props can strand a context consumer below it. The consumer keeps the old provider value whenever a hookless lightweight component sits between the boundary and the consumer. Two things cause it:LiteBlockImplhas nomemoInChain. A full Block created under a lightweight scope readsundefinedfrom its parent, so itsuseContextnever records the dependency on the memo ancestor.refreshContextConsumerswalks only Block slots and skips lightweight child scopes.#1696 fixes both. Its regression test fails if either half is reverted.
Why it cannot be smaller. The growth is the single
this.memoInChain=t.memoInChainassignment in theLiteBlockImplconstructor, which every bundle that mounts a lightweight component carries. The walk rewrite reusesforEachSubtreeChildand shrinks every bundle that reaches context refresh by about 300 raw bytes. Copying the flag at creation matches how a full Block computes it. A prototype getter would cost more bytes and add a polymorphic call to the Block constructor. Main had 4 raw bytes of headroom left onrows.framework, so the 31 bytes cannot fit.Changes
Bytes. Each affected bundle grows by 31 raw bytes. Gzip and brotli move by single or double digits and stay within budget, except
chat.framework.brotli: 38,313 → 38,342 against a budget of 38,314.Each new budget is #1696's measured bytes plus the usual headroom: 32 raw and gzip, 256 brotli. The bytes were measured on #1696's head merged with main 77504c1, with Node 24, and they match #1696's CI report exactly. Only breached metrics are raised. Stale headroom elsewhere is left alone, so other open PRs keep it.
minimal-budgets.jsoncli-spa-starter.rawminimal-budgets.jsonroot-static-specialized.rawminimal-budgets.jsonroot-chained-jsx.rawminimal-budgets.jsonroot-static-local.rawminimal-budgets.jsonhooks-state.rawminimal-budgets.jsonprop-attributes.rawminimal-budgets.jsonhydrate-root.rawminimal-budgets.jsoncomponent-owned-effects.rawminimal-budgets.jsonbinding-hooks.rawminimal-budgets.jsonbinding-mantine-hooks-vite.rawminimal-budgets.jsonbinding-mantine-hooks-esbuild.rawminimal-budgets.jsonbinding-usehooks-ts-vite.rawminimal-budgets.jsonbinding-usehooks-ts-esbuild.rawapp-budgets.jsonrows.framework.rawapp-budgets.jsonrows.total.rawapp-budgets.jsontodo.framework.rawapp-budgets.jsontodo.total.rawapp-budgets.jsonchat.framework.rawapp-budgets.jsonchat.framework.brotliapp-budgets.jsonchat.total.rawEach Δ is relative to the current budget, which already carried some unused headroom. Measured growth is +31 raw for every value.
Validation
node benchmarks/bundle-size/run-minimal.mjs --write-budgetsandnode benchmarks/bundle-size/run.mjs --write-budgets octane-tsrx octane-jsxon fix: propagate context updates through lightweight memo scopes #1696 merged with main 77504c1. Kept only the 20 raises; all lowers were discarded.node benchmarks/bundle-size/budget-raises.mjs --base origin/main: 20 raises in a budget-only change.pnpm syncleaves the tree clean; Prettier check on the budget files.pnpm format:check,pnpm typecheck,pnpm test: not run. This PR changes only JSON budget values.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 threshold updates for bundle-size CI; no runtime or application code changes.
Overview
Raises bundle-size CI budgets ahead of the memo/context fix in #1696, keeping size raises in a budget-only PR per project policy.
minimal-budgets.jsonbumps raw limits for 13 minimal benchmarks (e.g.cli-spa-starter,hydrate-root,binding-hooks, mantine/usehooks-ts variants) by ~54–58 bytes each.app-budgets.jsonraisesframework/totalraw budgets forrows,todo, andchat, and increaseschat.framework.brotlito match measured output after the ~31-byte framework growth.Only breached metrics are updated; other headroom is unchanged so unrelated PRs keep their slack.
Reviewed by Cursor Bugbot for commit f641d95. Bugbot is set up for automated code reviews on this repo. Configure here.