Repository navigation
ci(bundle-size): raise hydrate-frame budgets for unchanged adoption reads - #1863
Merged
Merged
Conversation
…eads 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]>
2 of 5 tasks
trueadm
marked this pull request as ready for review
October 7, 2026 20:39
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)No changes across 60 measured values. Public-import reachability bundles (bytes)No changes across 111 measured values. |
…e raise Main 96c4096 lowered hydrate-frame back to 364,918 / 112,855 / 96,725. Recompute the raise from what CI measured for #1862's head (366,032 / 113,311 / 96,797) plus the standard headroom: 366,064 raw, 113,343 gzip and 97,053 brotli. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 7, 2026
Conflicts: the 87 react-parity manifests and the user-apps-v1 manifest record the lockfile hash, which #1860 (react-alien-signals port) changed. pnpm sync regenerated them. The merged lockfile needs no change from `pnpm install --lockfile-only` and still holds no TypeScript 7.0.2. Also takes #1862 and its hydrate-frame budget raise (#1863). This branch changes no bundled code, so its budgets stay main's. 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
This is a budget-only raise for #1862. That change lets hydration skip rendering a native signal reader a second time when its live value equals the adopted server value. Per
CONTRIBUTING.md("Size budgets"), the raise lands on its own. It changes onlybenchmarks/bundle-size/minimal-budgets.json.minimal-budgets.json: hydrate-frame.rawminimal-budgets.json: hydrate-frame.gzipminimal-budgets.json: hydrate-frame.brotliEach new value is what CI's benchmark report measured for #1862's head, plus the standard headroom (+32 raw and gzip, +256 brotli). That head is 366,032 raw, 113,311 gzip and 96,797 brotli, against
main21f911d at 364,886, 112,823 and 96,548. Localrun-minimal.mjsmeasured the same bytes.The values are computed against
main96c4096, which ratcheted #1858's raises back down until #1857 lands. #1857 re-lands its own raise in a budget-only change, which will stack on this one.hydrate-frameis the only minimal scenario that hydrates with native signal reads. It is the only budget that moves: every other minimal scenario, and every app and JSX budget (run.mjs octane-tsrx octane-jsx), measures byte-identical raw. A few esbuild binding rows differ only in brotli noise.Where the bytes go:
ownNativeAdoption): about 620 raw for the consumer-side move (rebaseNativeRead).AdoptionFrameImpl.release.unchangedLiveRead.Why the growth is worth it
Measured on
app-frame-hydration(from #1857) with 20 interleaved pairs againstorigin/mainat 4× CPU throttle:frame-live-sectionsframeSection-level reads no longer render their whole section twice after every hydration commit. That saves about 11 ms cold and 6 ms warm per hydration, and about 680 KB of allocation.
Validation
node benchmarks/bundle-size/budget-raises.mjs --base origin/mainreports 3 raises in a budget-only change.pnpm format:check(JSON only; formatting unchanged)pnpm typecheck(no source change)pnpm test(left to CI)Risk / follow-ups
hydrate-frameratchet against the raised values (the budget-first window), so merge perf(signals): skip re-rendering adopted readers whose live values are unchanged #1862 promptly after this.hydrate-framebudget downward. Whichever of the two lands second must recompute these lines frommain.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 runtime or source changes; merge-order coordination with #1862 is the main operational note.
Overview
Raises only the
hydrate-frameminimal bundle-size budgets inminimal-budgets.jsonso CI can absorb the byte growth from the upcoming hydration optimization (skip re-rendering native signal readers when the live value matches the adopted server value).hydrate-frame: raw +1,146 (366,064), gzip +488 (113,343), brotli +328 (97,053 per diff - wait let me check diff again).Diff says:
Context file shows 97053 for brotli - good.
No other minimal, app, or JSX budgets change. Intended to merge before the feature PR so the ratchet passes during the budget-first window.
Reviewed by Cursor Bugbot for commit 0666897. Bugbot is set up for automated code reviews on this repo. Configure here.