Repository navigation
perf: omit unused controlled commit helpers - #1963
Conversation
# Conflicts: # packages/octane/src/runtime.ts # packages/octane/tests/optional-driver-bundle.test.ts
Benchmark report
Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)
9 other measured values are unchanged. Public-import reachability bundles (bytes)
36 other measured values are unchanged. |
|
Good to go, with one optional nit. Neither gated helper can be
Optional nit: the comment at Merge note: the Verified:
|
…ntrolled-commit-owner
…ntrolled-commit-owner # Conflicts: # packages/octane/tests/optional-driver-bundle.test.ts
…ntrolled-commit-owner
Summary
Keep controlled commit draining and manual-submit pending publication out of applications that do not produce that work. Install their existing implementations from the two queue producers and manual-submit transition registration, before staging or count publication. Installation is monotonic; both implementation bodies remain unchanged.
The original implementation’s matched complete rows benchmark against
4cc2a1edfalls from 32,140 to 31,706 gzip bytes with the canonical Oxc configuration (−434 bytes, −1.35%). The ordinary esbuild build also shrinks, by 463 gzip bytes.Changes
noopand two stable function bindings; no new records, per-node fields, runtime calls, queue algorithms, scheduling changes, or compiler changes.read:methodclassification associated with the renamed publisher; no permission expansion.Validation
Signed head
d3515d240integrates main2075c0e72. The final integrated source passes 35 focused executions (optional-feature retention and event-registration in dev/prod, plus private entrypoint contracts), scoped formatting and sync. Independent source review preserves both parents’ tests and feature logic. Current-head CI is running; earlier evidence below qualifies its stated source.Current-head CI passed at
0cf1946ed(31 checks, including full test/parity shards, typecheck, lint, browser integration and Bugbot; no actionable review threads). CI run.Current-head benchmark report confirms rows −1,473 raw / −434 gzip / −351 Brotli, weather −458 gzip, Todo −312, chat −274 and JSX rows −114. All 64 work counters are unchanged; all 20 timed operations are classified within noise by the repository report. Feature-retaining growth matches the disclosed controls (+36 gzip bindings, +61 full-framework).
pnpm syncand scoped formatting; worktree clean.Targeted tests: 332/332, 10 owning files in both dev/prod, using a scoped Vitest config with the real compiler and setup. Covers controlled selects, hydration/staging/cancel, form diagnostics/actions/reset, focus and host props.
Mutation checks: omitting each installation independently fails its behavioral regression; restoring eager reachability fails the negative source-map gate.
Existing staged-DOM scanner regression observed failing on the stale owner name, then 9/9 tests passed after the classification rename; scoped format and sync passed. Corrective head
0cf1946edpreserves runtime SHA25602066003…2930e67exactly from the measuredf76998cartifacts.Runtime-only scoped typecheck. The selected test program reports 59 unchanged existing diagnostics on both exact base and head (zero added/removed); that check is not claimed as passing.
Full workspace
pnpm format:check,pnpm typecheck, andpnpm testwere not run locally. The scoped test configuration avoids unrelated unavailable dependencies in the full workspace config; CI remains required.Ordinary production work: all 64 call/DOM/direct-insertion counters match for TSRX and JSX with unchanged fixture configurations (esbuild, no framework split).
Active select/reprojection work: 50,710 production calls on each side, with controlled state, 512 fields, DOM identity and focus preserved.
Manual-submit production control: exact hook/public transition fixture, plain and counter builds, twice per fresh page. Both sides publish pending once, enter two transitions, settle twice and publish idle once; all four snapshots and render counts match.
perf-review: zero scan findings; independent source review clean. Queue installers add identity comparisons without calls/allocations; targets stay stable after installation. Owning timing evidence is below.concise-code: runtime +13/−3; no new exports, types, records or modules. Reused producer boundaries instead of a driver record or per-node state. Keeping only one helper was smaller but left the other independently removable graph retained. Both implementation bodies compare byte-for-byte after declaration renaming.Matched final-source size deltas against
4cc2a1ed(Node 24.20.0, whole emitted JavaScript; positive values are growth):The feature-retaining controls make the small bundle-size growth explicit. The full-API Oxc framework-only Brotli delta is +55; the table reports total output. CI bundle reports are authoritative.
Owning timing uses unchanged fixtures and final ordinary esbuild artifacts. Each confirmed cohort has 24 fresh browser/process groups, 30 paired warmups and 12 retained paired windows per group, balanced creation/import and execution order, and interleaved identical-byte controls. Primary intervals resample the 24 group arithmetic means; they do not pool the within-group windows. All samples are retained. Browser clocks are isolated/high resolution; shared benchmark locking prevents competing runs.
Initial 200-pair single-realm runs showed positive intervals: select 1.01448 [1.00830, 1.02219], dev 32k 1.02385 [1.01344, 1.03673], dev 4k 1.01642 [1.00645, 1.03277]. They are retained here, not discarded. Independent-group confirmation addresses persistent realm/import bias; it is not proof of universal performance equivalence.
Risk / follow-ups
Performance acceptance remains open. The earlier benchmark run 38049629770 on
2dce104b3reported JSXselect_lotsat +6.1% [95% interval +4.0%, +7.5%], with all 64 work/DOM counters equal. Its uploaded report contains neither the emitted JavaScript nor the raw 30-pair timing vectors, so the cause remains unconfirmed. The existing controlled-form selection follow-up exercises a different operation and does not resolve this row-selection observation. Green checks alone do not establish performance parity.No slowdown was detected in the independent-group fixtures (upper confidence bounds: select +0.57%, dev 32k +1.04%, dev 4k +0.46%); their confidence bounds and the initial positive observations are reported above. These are owning-path measurements, not user-visible latency claims. Current-head CI is green and there are no actionable review threads. Maintainer approval is still required; this PR is unmerged.
Provenance
agent-authored)Origin: Codex task, host
com-79386. Implementation:codex/controlled-commit-ownerin the dedicatedcontrolled-commit-owner/octaneworktree.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Medium Risk
Touches core form commit, autofocus, and manual-submit/
useFormStatustiming; mitigated by extensive regressions and unchanged implementation bodies after install.Overview
Lazy-installs controlled commit draining and manual-submit pending publication so production bundles that never queue deferred form work or entangle submit with transitions can drop those helpers (~400+ gzip bytes on typical apps).
drainControlledSyncsandpublishManualFormPendingstart as stablenoopbindings and wire todrainQueuedControlledSyncs/publishRegisteredManualFormPendingon first use (controlled/dev-form queues or a transition during active submit dispatch). Installation is one-way; behavior for late-first use (select defaults, autofocus, dev diagnostics, overlappinguseFormStatustransitions) is covered by new bundle and conformance tests. Staged-DOM audit and a comment indom-stage.tsfollow the publisher rename.Reviewed by Cursor Bugbot for commit d3515d2. Bugbot is set up for automated code reviews on this repo. Configure here.