Repository navigation
ci(bench): raise byte budgets for skipping undo entries on fresh rows (#1831) - #1832
Conversation
The companion journal-update-cost pull request skips undo entries for handlers and class names written into rows the render creates, and checks a cleared list's old rows without a call per row. It adds a cached discard stamp that beginRootRender, endRootRender, preserveRootCreatedDom and hydrateRoot keep current, a `foreign` path for runtime writers, and an inlined nextSibling walk. That costs +81 raw in every scenario and up to +199 raw where list clears are reachable, with gzip growing +37 to +119. The win: create 1k -13.8% production calls and -5.6% wall time, create 10k -13.8% calls and -4.5% wall time, clear 10,097 -> 97 calls. Budgets are measured with that change on main 4dcb699 (+32; brotli +256), raises only: - rows framework 104,286 -> 104,467 raw, 33,898 -> 33,981 gzip - todo framework 115,017 -> 115,198 raw, 36,820 -> 36,901 gzip - every other changed app, jsx and minimal scenario likewise, by the measured delta Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website | 38c41f4 | Commit Preview URL Branch Preview URL |
Oct 06 2026, 09:21 PM |
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 105 measured values. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website-mcp | 38c41f4 | Commit Preview URL Branch Preview URL |
Oct 06 2026, 09:23 PM |
With #1832's raises on main, these measure below their budgets, and the downward ratchet asks for: - hydrate-root brotli 38,805 -> 38,747 (CI's own figure) - component-owned-effects brotli 22,602 -> 22,600 - binding-usehooks-ts-esbuild brotli 27,494 -> 27,475 - bindings app gzip 115,705 -> 115,704 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…es, and clear lists without a call per row (#1831) * perf(octane): skip undo entries for writes into rows the render creates, and clear lists without a call per row Every scheduled render opens the root undo journal. Abandoning the render discards each Block it created whole (undoCreatedInRootRender), so an undo entry for a write into such a Block's own hosts is never replayed. - A module-level ROOT_DISCARD_STAMP holds the createdStamp of the Blocks the active root attempt discards, or -1 under hydration or once adopted DOM is retained. beginRootRender and endRootRender (via the frame), preserveRootCreatedDom and hydrateRoot's hydrating mark keep it current. journalBag now tests that one field instead of the transaction's shape. - setEventHandler and setClassName skip their undo entry for a host of such a Block in the root window. Runtime callers that may write a host the current scope does not own pass `foreign`: signal-driven class writes, spread handlers, de-opt class and handler removal. - The deferred owned-list clear checks its old rows through the native nextSibling getter instead of calling getNextSibling per row. js-framework, exact production calls (octane-tsrx): create 1k 29,087 -> 25,087, replace 36,100 -> 32,100, append 37,086 -> 33,086, create 10k 290,084 -> 250,084, clear 10,097 -> 97. No operation gains a call or a DOM mutation. Wall time: create 1k -5.6%, create 10k -4.5%, other operations within noise. The byte growth (+181 raw / +83 gzip on rows) is raised in a separate budget-only pull request. Refs #1801. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(bench): ratchet the budgets #1831 lowers With #1832's raises on main, these measure below their budgets, and the downward ratchet asks for: - hydrate-root brotli 38,805 -> 38,747 (CI's own figure) - component-owned-effects brotli 22,602 -> 22,600 - binding-usehooks-ts-esbuild brotli 27,494 -> 27,475 - bindings app gzip 115,705 -> 115,704 Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Budget-only raise for #1833, which deferred its raise until #1831 landed because both raise the same budgets. #1832 covered #1831 alone, so main 50e18cc fails test shard 1/4 at "Verify every bundle budget" (cli-spa-starter raw 101,793 over 100,464). #1833 keeps link records for keyed-list rollback (record forms plus the link notes in each relinking reconcile path). Its own measurement: +1,359 raw / +443 gzip on rows. Measured on main 50e18cc with `run-minimal.mjs --write-budgets` and `run.mjs --write-budgets octane-tsrx octane-jsx` (measured + 32 raw/gzip, + 256 brotli); 60 raises, no lowerings: - every client scenario and app: about +1,355 raw, +415 to +475 gzip - cli-spa-starter 100,464 -> 101,825 raw, 33,454 -> 33,883 gzip - root-static 163,723 -> 165,078 raw; rows framework 104,467 -> 105,826 raw - jsx framework 177,637 -> 178,994 raw - brotli rises where the measurement passed the old value (+256 headroom) Bisected per commit on cli-spa-starter: 4dcb699 100,347 raw, #1833 101,708, #1834 101,708, #1831 101,793. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
This is the budget-only companion to #1831. It raises byte budgets only.
Merge order: merge it immediately before #1831, back to back. The downward ratchet fails every other open PR while main carries a raise its feature has not used.
What #1831 adds: it skips undo entries for handlers and class names written into rows the render creates, and checks a cleared list's old rows without a call per row. That adds a cached discard stamp, a
foreignpath for runtime writers, and an inlinednextSiblingwalk.What it costs:
What it buys: js-framework production calls −13.8% for create 1k and create 10k, and 10,097 → 97 for clear. Wall time is −5.6% for create 1k and −4.5% for create 10k.
Values are
run.mjs --write-budgets octane-tsrx octane-jsxandrun-minimal.mjs --write-budgets, measured with #1831 on main4dcb699866(+32; brotli +256). Only raises are kept, 70 values acrossapp-budgets.json,minimal-budgets.jsonandjsx-budgets.json. Local brotli-only decreases are left as main has them.Validation
node benchmarks/bundle-size/budget-raises.mjs --base origin/main --head HEAD: "70 raise(s) in a budget-only change"pnpm format:check/pnpm typecheck/pnpm test(budget JSON only)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, security, or application logic changes.
Overview
Raises bundle-size CI budgets across
app-budgets.json,jsx-budgets.json, andminimal-budgets.jsonso the downward ratchet still passes after the runtime work in #1831 lands. The diff is budget-only: 70raw/gzipceilings go up (on the order of ~81–199 bytes raw and ~37–119 bytes gzip per affected scenario); brotli entries are unchanged except where main already had lower values.App scenarios (
rows,todo,chat,weather,bindings) get higherframeworkandtotallimits. Minimal gates (SPA starter, static roots, hooks, bindings, etc.) and the jsx aggregate framework/total budgets are bumped the same way. Intended merge order is immediately before #1831, back to back.Reviewed by Cursor Bugbot for commit 38c41f4. Bugbot is set up for automated code reviews on this repo. Configure here.