Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
On hold: these values are now too low. main Once main gets its raise-only fix for #1892, I'll re-measure #1896 on top of it and update these values. |
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)No changes across 60 measured values. Public-import reachability bundles (bytes)No changes across 111 measured values. |
Measured over main 68aa481 with --write-budgets; only raw rows that this branch makes smaller. The matching gzip and Brotli raises are the budget-only #1906, which merges first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* perf(octane): move feature-only Block state to a lazy record Fourteen BlockImpl fields served only Suspense/try/Activity boundaries, use() thenables, fetch-tree warming, the commit-callback update guard, useEffectEvent and ViewTransition. They now live on a `rare` record that blockRare() allocates from one literal the first time a feature needs it. BlockImpl drops from 79 to 66 fields and its constructor bytecode from 437 to 371 bytes; LiteBlockImpl carries `rare: null` so parentBlock walks stay uniform. Paired cold mounts (Chromium, 40 fresh pages): memo-wall 0.960, portal-swarm 0.981, recursive-context 0.985 against main. Adds a regression test for the per-render use() call-position reset that now runs only when the record exists. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bundle-size): lower the raw budgets the lazy Block record shrinks Measured over main 68aa481 with --write-budgets; only raw rows that this branch makes smaller. The matching gzip and Brotli raises are the budget-only #1906, which merges first. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
This is a budget-only change for #1896, which moves feature-only Block state to a lazy record. It changes only bundle budget files.
#1896 makes cold mounts faster. Paired against main:
Its raw bytes drop by 8–84 B in every reachable scenario. Gzip grows by 33–111 B, because the
block.rare?.fieldreads at boundary, thenable and effect-event sites compress worse than the repetitive constructor lines they replace. Two Brotli values also cross their 256-byte allowance.Changes
Raise only the 48 values that #1896's head exceeds: 36 gzip and 12 Brotli. Each new limit is #1896's measurement plus the repository's 32-byte gzip or 256-byte Brotli allowance, from
--write-budgetson #1896 merged with main68aa48102b(main's own budgets set to its measured bytes after #1892). No raw budget and no unrelated scenario gets more headroom. #1896 lowers the 36 raw ceilings it shrinks.Local main measurements matched CI byte for byte on every minimal row (checked on
2f81266018).Ordering: merge this immediately before #1896. If #1905 (for #1899) or #1887 lands first, these values need re-measuring on top of it.
Every raised ceiling (bytes)
Validation
node benchmarks/bundle-size/run-minimal.mjs --write-budgetsandnode benchmarks/bundle-size/run.mjs --write-budgets octane-tsrx octane-jsxon perf(octane): move feature-only Block state to a lazy record #1896's head, merged with this base. Only the raised values are applied here.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Benchmark threshold JSON only; no application or framework runtime behavior changes.
Overview
Updates only bundle-size budget JSON (
app-budgets.json,jsx-budgets.json,minimal-budgets.json) so CI keeps passing after the companion change that moves feature-only Block state to a lazy record (#1896).Gzip ceilings go up on 36 entries (roughly +35–123 B per line); Brotli on 12 entries where measurements cross the existing allowance. Raw budgets and untouched scenarios are unchanged—this is headroom for slightly larger compressed framework bundles (
block.rare?.field-style reads compress worse than the constructor lines they replace), not new runtime code.Intended to merge immediately before #1896; if other budget-affecting PRs land first, these numbers need re-measurement with
--write-budgets.Reviewed by Cursor Bugbot for commit ec55fbd. Bugbot is set up for automated code reviews on this repo. Configure here.