Skip to content

Split #1188 into six mechanism-scoped PRs (benchmark honesty, budgets, compiler + runtime perf) #1202

Closed

Description

@jonkwheeler

Tracking: split #1188 into six mechanism-scoped PRs

PR #1188 (perf/beat-react-benchmarks, ~4.6k additions across ~148 files) carries five unrelated concerns in one diff — benchmark-harness honesty fixes, three compiler features, three runtime perf paths, review remediation, and generated-file churn. This issue tracks splitting it into six independently reviewable children, each branched off main, each landing on its own.

Frozen references (recorded at extraction):

  • SPLIT_BASE = 4dacf01ad — tip of perf/beat-react-benchmarks; the coverage reference tree.
  • MAIN_BASE = 8a4a2e087 — origin/main at extraction; the base every child branches from.

Chunk map

# Child PR Owns Lands
1 fix(benchmarks) harness honesty — PR TBD effectful-list update_nodeps restore + __renders row gate + tick threading across framework fixtures; spa-navigation reactCompiler enable incl. its pnpm-lock.yaml hunk; all lockfile-derived generated output (packages/*/audit/react-parity.json, user-apps-v1 eval manifest) regenerated via pnpm sync wave 1
2 ci(benchmarks) budgets + guardrails — PR TBD app/jsx/minimal budgets + benchmarks/baselines/ratios.json re-measured on main (never reused from the branch tip); void-root verdict reporting + __createVoidRoot specialization gate in bundle-size/run.mjs wave 1
3 feat(compiler) forBlock PURE admission — PR TBD host-only conditional item bodies admitted to PURE; function-boundary fail-closed wave 2
4 feat(octane) $$stable bailout — PR TBD __st/markStable stamp + exports, shallow-prop bail, shared blockBailUnsafe hazard veto, lite lowering for context-free memoized callees wave 2
5 perf(runtime) changed-commit write path — PR TBD sources-plan cache/replay, fused scans, preclassified writers, journal replay, unchanged-spread bail, journalSignalHostBinding rollback fix, host-prop commit slimming wave 2
6 perf(runtime) signal identity + dormant paths — PR TBD WeakMap→scope/block signal-instance fields, closure-free owner switch in componentSlotLite, renderBlockInner dormant fast paths wave 2

Ordering

  • Children branch off main independently — ordering is a merge sequence, not a stack.
  • Wave 1 (children 1–2) lands first in either order; wave 2 (children 3–6) in any order.
  • Child 2 lands first among equals so runtime children arrive on a green bundle-size gate. Each wave-2 child records its added framework bytes at its own PR head; if one would exceed the headroom child 2 left, a small tail budget-bump PR lands before that child.
  • Review-remediation hunks from 15527635c and the mixed 1a202933c commit are redistributed by hunk into whichever child owns the affected region — no child ships a known bug, and no standalone "review fixes" PR exists.

Cumulative benchmark claim

Held here rather than in any child body: the combined branch is what was measured to beat React 19 + Compiler on effectful-list, svg-dashboard, and spa-navigation. Each perf child cites only the suite delta measured at its own head — a null result is reported as null.

Coverage oracle

Once all six draft branches exist — before any flips ready — the six tips are composed into one scratch tree and tree-diffed against SPLIT_BASE. The diff must be empty modulo an explicit allowlist:

  1. regenerated output (parity records, eval manifest — produced by pnpm sync, not ported),
  2. child-2 / tail-bump deliberately re-measured budget and ratios.json values,
  3. upstream main drift between the branch's last merge and MAIN_BASE.

Any other difference is a lost or misassigned hunk: it gets re-homed on the owning still-open child — the composed tree is never patched directly. Where two children split a shared function, the branch's final text is authoritative.

Source

Provenance

  • An agent produced the split plan and this tracking issue (agent-authored)

Activity

  1. jonkwheeler commented on Sep 21, 2026

    @jonkwheeler
    ContributorAuthor

    U9 + U10 checkpoint — all six children exist as drafts

    Children (all draft, all forked at MAIN_BASE = 8a4a2e08):

    # PR suite delta at HEAD (vs main@8a4a2e08)
    1 #1205 fix(benchmarks) harness honesty —
    2 #1207 ci(benchmarks) budgets re-commit —
    3 #1213 feat(compiler) forBlock PURE svg-dashboard geomean 0.866x (drag_nodes 0.42x, label_churn 0.59x, style_spread_pulse 0.72x)
    4 #1214 feat(octane) $$stable effectful-list ~1.00x — honest near-null: main's implicit bail already skips most row bodies; mechanism proven by stable-bailout.test.ts render counts
    5 #1215 perf(octane) write path svg-dashboard geomean 0.869x (select_toggle 0.52x, style_spread 0.57x)
    6 #1216 perf(octane) signal identity spa-navigation geomean 0.881x (nav_teardown 0.78x, nav_mount 0.83x)

    U9 — per-child budget headroom vs #1207's re-committed budgets: all four wave-2 children fit, no bumps needed. Tightest margins: binding-vanilla +20B, server-hooks +45B (both upstream values, unchanged by children), app buckets +96B, framework buckets ≥1kB. Added fw_gzip per child (rows fixture): c4 +38B, c5 +64B, c6 +150B; jsx fw: c4 +201B, c5 +340B, c6 +159B. Child 3 is compiler-only (runtime bytes unchanged).

    U10 — coverage oracle, run pre-merge (scratch oracle-compose at MAIN_BASE, six tips merged, zero conflicts): tree-diff vs SPLIT_BASE 4dacf01a = allowlist-only, no lost hunks:

    • runtime.ts (the shared-file risk): only 8 hunks / ~21 lines differ — all the spliceOffscreenCapture signature change that landed on main after the branch's last merge (upstream drift, expected)
    • regenerated: react-parity/inventory JSONs, user-apps-v1 manifest, docs/packages.md, bindings-status.md, octane-data.json (child 1 pnpm sync output)
    • re-measured: app-budgets.json, jsx-budgets.json, minimal-budgets.json, baselines/ratios.json (child 2)
    • main drift: version/CHANGELOG bumps (Version Packages #1201), input-otp, hydration stream-receiver, native-resume-staging, vite-resolve-id/version/external-hook-slot tests, conversation-streaming — 25 files main changed between merge-base ba49532d and MAIN_BASE
    • intended restructure: olive-geese-bail.md split into four mechanism-scoped 'octane': patch changesets; one prettier reflow in auto-memo-lite.tsrx

    Supersede comment on #1188 waits for all six children landing green, per plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions