Repository navigation
Conversation
This was referenced Oct 8, 2026
domgan-oai
marked this pull request as ready for review
October 8, 2026 12:34
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)No changes across 60 measured values. Public-import reachability bundles (bytes)No changes across 111 measured values. |
…er-pacing-budgets # Conflicts: # benchmarks/bundle-size/jsx-budgets.json # benchmarks/bundle-size/minimal-budgets.json
…er-pacing-budgets # Conflicts: # benchmarks/bundle-size/minimal-budgets.json
This was referenced Oct 8, 2026
trueadm
added a commit
that referenced
this pull request
Oct 8, 2026
The merge took main's budget files. #1891 raised 70 rows ahead of #1875, which is still open. Each raw and gzip row now drops by exactly what this change saves against main (2f81266), measured per scenario on both trees. A row #1891 raised therefore keeps #1875's headroom. Brotli rows keep main's values, and no value is raised. Every head measurement fits its budget. The ratchet flags only the 70 rows #1891 raised for #1875, as it does for any PR until #1875 lands. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 8, 2026
6 of 8 tasks
trueadm
added a commit
that referenced
this pull request
Oct 8, 2026
… a row (#1890) * perf(octane): copy a keyed reorder's record directly until it relinks a row A keyed reorder records its list at the first row index it rewrites, before it knows whether it will relink a few rows or every row. Since #1833 that record allocated its `links` Map and a per-journal records Map up front. When the reorder then reached the LIS path, `fullForSlotRecord` walked the chain through the empty links Map and, for a key Map already out of chain order, built a Set of every row to filter it. The record now gets its links Map at its first relink (`forSlotLinks`). Until then only index writes have run, which change neither the chain nor the key Map, so converting it copies the list as it stands, which is the full form's cost before #1833. The record rides in the spare slot of its own undo entry, found again through the window's `seen` index, so `SLOT_RECORDS` is gone and the record still lives exactly as long as its log. - recursive-context zero-context reorder: 4 Map constructions -> 2, so context-cache-work.mjs passes its ceiling again (bisected to e595a13). - js-framework reorder matrix (octane-tsrx, paired, 12 samples): rotatef, rotateb and displace3-8 are 22-27% faster than main and within 5% of the runtime before #1833; removals and inserts keep #1833's gains. - Framework bundles are 129-137 raw bytes smaller; budgets lowered. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(octane): look a keyed list's record up only when its window has an entry The PR bench counted two more production calls on every js-framework operation: journalForSlot and journalForOwnedListClear called the record lookup, and fullForSlotRecord with no record, even for a list's first record in a render, where there is no entry to find. Skip both when the list has no entry. Every js-framework calls_* and dom_* counter now equals main's (pair.mjs --work-only). Lower the bindings app and total brotli budgets the ratchet now asks for. Co-Authored-By: Claude Opus 5.5 <[email protected]> * perf(octane): read a keyed list's record from its undo entry inline Inline the record lookup in journalForSlot and journalForOwnedListClear. With the helper, the bindings app's framework chunk compressed 21 gzip bytes larger than main's, past its budget, although raw was 104 bytes smaller. Inline, it is 5 gzip bytes larger and 10 under the budget. Production calls are unchanged: every js-framework calls_* and dom_* counter equals main's (pair.mjs --work-only against c0192ec). Re-measure the bundle budgets on current main. The merges took main's budget files, and this writes 40 lowers and no raises. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): lower the budgets by this change's measured saving over #1891 The merge took main's budget files. #1891 raised 70 rows ahead of #1875, which is still open. Each raw and gzip row now drops by exactly what this change saves against main (2f81266), measured per scenario on both trees. A row #1891 raised therefore keeps #1875's headroom. Brotli rows keep main's values, and no value is raised. Every head measurement fits its budget. The ratchet flags only the 70 rows #1891 raised for #1875, as it does for any PR until #1875 lands. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): re-lower the budgets this change saves on after #1875 landed The merge took main's budget files. Each raw and gzip row that main (abe9b42) fits drops by exactly what this change saves against main, measured per scenario on both trees. Brotli rows keep main's values unless the ratchet asks for less. That gives 24 lowers and no raises. Main measures over 35 rows after #1875 and #1888, and #1887 budgets that growth. Those rows keep main's values here. Merging #1887 will re-lower the ones this change also saves on. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): re-lower the budgets this change saves on over #1893 The merge took main's budget files (6eef1e0). Each raw and gzip row that main fits drops by exactly what this change saves against main, measured per scenario on both trees. Brotli rows keep main's values unless the ratchet asks for less. That gives 37 lowers and no raises. The rows #1893 raised for #1892 keep #1892's growth. The 30 rows main exceeds until #1887 lands keep main's values. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): re-lower the budgets this change saves on over 87d9f95 The merge took main's budget files. Main now fits every row. Each raw and gzip row drops by exactly what this change saves against main, measured per scenario on both trees. Brotli rows keep main's values unless the ratchet asks for less. That gives 63 lowers and no raises. The rows #1893 raised for #1892 keep #1892's growth. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): lower the budgets by this change's saving over main's ratchet The merge took main's budget files. e14fbdf set every budget to main's measured bytes plus headroom. Each raw and gzip row drops by exactly what this change saves against main, measured per scenario on both trees. Brotli rows keep main's values unless the ratchet asks for less. That gives 56 lowers and no raises. Every ceiling and the ratchet hold locally, and so do the budget-raise and hydration-free checks. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): lower the budgets by this change's saving after #1892 The merge took main's budget files (68aa481), which match main's measured bytes. Each raw and gzip row drops by exactly what this change saves against main, measured per scenario on both trees. Brotli rows keep main's values unless the ratchet asks for less. That gives 54 lowers and no raises. Locally, binding-mantine-hooks-esbuild brotli is 7 bytes over main's value, 27,265 against 27,258. Its raw and gzip bytes equal main's: esbuild assigns different minified names in that bundle, and brotli compresses them differently. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: domgan-oai <[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
Budget the measured production cost of native producer pacing in #1875, also inherited by #1877. This PR changes only bundle budget files; the implementation remains in its own PR.
Why
Ready query and derived streams can render each buffered value in the same microtask checkpoint. #1875 coalesces native component renders using the existing task queue and shares an approximately 5 ms admission budget across producers. Every source value, graph effect, and direct binding remains observable.
The optional hydration-frame consumer retains that producer machinery and grows by 1,265 raw / 503 gzip / 409 Brotli bytes against main. The SPA starter grows by 45 raw / 53 gzip / 35 Brotli bytes; the Base UI Vite consumer grows by 42 raw / 44 gzip bytes. The implementation already reuses the landed scheduler and keeps transition-root/offscreen capabilities out of native-only consumers. A further shared-driver factory was measured and discarded because it increased bytes.
Changes
Raise only the 70 measured values that exceed existing ceilings (37 raw, 32 gzip, 1 Brotli). Each new limit is the implementation measurement plus the repository's existing 32-byte raw/gzip or 256-byte Brotli allowance. No unrelated scenario receives more headroom. The proposal also includes main
a447b6db6's one-byte Base UI gzip ratchet; that commit changes no measured source, and the proposed ceilings are unchanged from the combined-head measurements.Authoritative CI report: implementation head
d47ff41d99227771c2c649e69c7a79045d3a154a, compared with mainc0192ec81693463850228357e0b23caf71656f5e. All 64 js-framework work counters are unchanged. The focused producer probe preserves every value while reducing a 100-value ready query/derived workload from 101 component commits to 1; CPU-heavy concurrent work trades some extra commits for host-task opportunities. These are task-order measurements, not browser latency claims.Every changed ceiling (bytes)
Validation
node benchmarks/bundle-size/budget-raises.mjs --base a447b6db6d166f9467ece080d86aec53238092ae: budget-only change accepted.git diff --check; only the three budget JSON files change.perf-review: not applicable to this budget-only diff; implementation evidence is in fix: coalesce and pace ready signal producers #1875 and the linked CI report.417b95483. Localpnpm syncwas attempted but the pinnedtypescript-nativepackage is unavailable.Risk / follow-ups
This explicitly accepts the measured byte cost. The runtime changes do not land with this PR. After this separate budget decision lands, #1875/#1877 must incorporate it and pass their own current-head CI. Budget ratchets and absolute ceiling enforcement remain unchanged.
Provenance
agent-authored)Codex task · host com-79386
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Budget JSON-only changes with no production code; risk is accepting slightly larger allowed bundle sizes in CI.
Overview
Raises CI bundle-size ceilings in
app-budgets.json,jsx-budgets.json, andminimal-budgets.jsonso upcoming native producer pacing work can land without failing size gates. Only limits that already exceed current caps are bumped; each new value is the measured build size plus the repo’s existing raw/gzip (+32 B) or Brotli (+256 B) headroom.Framework/total budgets move up modestly across app scenarios (
rows,todo,chat,weather,bindings) and the JSX rows benchmark. Minimal scenarios see the largest ratchet onhydrate-frame(notably Brotli); SPA starter, hydration, suspense, and several binding consumers get smaller raw/gzip increases. No runtime or benchmark harness code changes—this is a budget-only decision ahead of the implementation PRs.Reviewed by Cursor Bugbot for commit 417b954. Bugbot is set up for automated code reviews on this repo. Configure here.