Repository navigation
ci(bench): raise byte budgets for urgent layout-effect updates - #1685
Merged
Merged
Conversation
Makes room for the commit-phase update priority fix in the useLayoutSnapshot follow-up: 32 minimal-scenario and 19 application budgets grow by 84-115 raw and 33-73 gzip bytes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
6 of 7 tasks
trueadm
marked this pull request as ready for review
October 3, 2026 19:14
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)
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 3, 2026
Main gained #1685, which raised 51 budgets for the useLayoutSnapshot commit-phase priority fix (#1686), and #1681/#1665. Re-measured on main 425a32a: each of #1663, #1664 and #1666 merged alone, and all three plus #1686 merged together. Each budget is the larger of main's value and the largest measured value plus 32 (raw/gzip) or 256 (brotli), so the three perf PRs and #1686 can land in any order. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
5 of 6 tasks
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
Raises 51 byte budgets for the commit-phase update priority fix in the
useLayoutSnapshotfollow-up (branchfix/layout-snapshot-review, stacked on #1677). This PR changes only budget files, asCONTRIBUTING.md("Size budgets") requires.Why the growth is worth it. Today, while an async Action is pending, a
setStatein auseLayoutEffect(the usual measure-then-render pattern) is staged into that Action and stays hidden until it settles. A commit flushed inside astartTransitioncallback also turns its layout-effect updates into transitions. React clears the ambient transition for a commit, so those updates are urgent there. The fix adds aninCommitCallback()check to the three places that pick the Action batch or priority, and clearsTRANSITION_DEPTH/ACTIVE_TRANSITION_ACTION_BATCHonce percommitEffects. That code is in the core scheduler and commit path, which every bundle carries. A capability gate would need its own call sites in that same path, so it would not stay under the 32-byte headroom either.I measured with Node 24 on the fix branch merged with main at 12c32ec, using
run-minimal.mjs --write-budgetsandrun.mjs --write-budgets octane-tsrx octane-jsx. I kept only the raises. That command would also lower 23 unrelated budgets to bank savings already on main, and I left those out.minimal-budgets.jsoncli-spa-starter.rawminimal-budgets.jsoncli-spa-starter.gzipminimal-budgets.jsonroot-static-specialized.rawminimal-budgets.jsonroot-static-specialized.gzipminimal-budgets.jsonroot-chained-jsx.rawminimal-budgets.jsonroot-chained-jsx.gzipminimal-budgets.jsonroot-static-local.rawminimal-budgets.jsonroot-static-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.jsonhydrate-root.rawminimal-budgets.jsonhydrate-root.gzipminimal-budgets.jsondeferred-hydration.rawminimal-budgets.jsondeferred-hydration.gzipminimal-budgets.jsonsuspense-transition.rawminimal-budgets.jsonsuspense-transition.gzipminimal-budgets.jsoncomponent-owned-effects.rawminimal-budgets.jsoncomponent-owned-effects.gzipminimal-budgets.jsonbinding-hooks.rawminimal-budgets.jsonbinding-hooks.gzipminimal-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-usehooks-ts-vite.rawminimal-budgets.jsonbinding-usehooks-ts-vite.gzipminimal-budgets.jsonbinding-usehooks-ts-esbuild.rawminimal-budgets.jsonbinding-usehooks-ts-esbuild.gzipapp-budgets.jsonrows.framework.rawapp-budgets.jsonrows.framework.gzipapp-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.total.rawapp-budgets.jsonweather.total.gzipapp-budgets.jsonbindings.framework.rawapp-budgets.jsonbindings.framework.gzipapp-budgets.jsonbindings.total.rawValidation
node benchmarks/bundle-size/run-minimal.mjs --budgetsandnode benchmarks/bundle-size/run.mjs --budgets octane-tsrx octane-jsxpass on the fix branch with these budgets. Without them they fail by up to 83 raw bytes.pnpm format:check,pnpm typecheck,pnpm test: not run; only budget JSON changes.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 or framework logic changes; main-branch bundles already sit below the new ceilings.
Overview
Raises 51 bundle-size ceilings in
minimal-budgets.jsonandapp-budgets.jsonso CI size checks can pass after framework growth from the urgent layout-effect / commit-callback update-priority fix (stacked follow-up), without touching runtime code.minimal-budgets.json: bumpsrawandgziplimits for many minimal fixtures (SPA starter, static roots, hooks/context/hydration/suspense scenarios, and several hook-binding bundles), typically by ~33–115 raw bytes per entry.app-budgets.json: raisesframeworkandtotalraw/gzipbudgets for sample apps (rows,todo,chat,weather,bindings) by similar small amounts (~43–91 raw bytes). Brotli values are unchanged in the diff.Budgets were regenerated with the benchmark
--write-budgetsflow; unrelated downward adjustments from main were intentionally omitted so this PR only increases limits.Reviewed by Cursor Bugbot for commit c8728d9. Bugbot is set up for automated code reviews on this repo. Configure here.