Skip to content

perf: reduce remaining DOM and event overhead - #1068

Merged
domgan-oai merged 2 commits into
octanejs:mainfrom
openai-oss-forks:codex/remaining-dom-events-981
Sep 12, 2026
Merged

domgan-oai merged 2 commits into
octanejs:mainfrom
openai-oss-forks:codex/remaining-dom-events-981

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Addresses all eight remaining findings in DOM writes, templates, events from #981. This includes an explicit disposition for costs required by existing observable behavior; the separate descriptor-renderer findings remain outside this PR.

Finding Change
Static attributes use generic routing Compiler selects native scalar/data/URL writers after conservative admission; aliases are resolved once. Development diagnostics, URL filtering, coercion, hydration, and rollback remain intact.
Spread resolution allocations Reuse fixed writer records; remove normalization/winner tuples and the ordinary ordering array; skip parsing unchanged handlers. Client and SSR preserve source evaluation and alias precedence.
Multi-root template insertion Cache native DocumentFragments and insert each clone once. Templates containing custom elements retain sequential insertion because connection callbacks observe sibling visibility.
Text-only mounting Reuse compiler-seeded text placeholders; replace sibling placeholders with replaceChild. Unseeded calls preserve append behavior and constructor-owned text.
Temporary Event properties Move private propagation/current-target state into reusable dispatch frames. Restore public own-property descriptors exactly, including required deletions.
Per-event concatenation and type probes Share cached keys/category flags across capture and bubble registration for each event type.
Portal reads on ordinary paths Gate portal-parent reads on portal presence and the captured topology epoch, preserving an in-flight route after portal teardown.
Repeated head writes Compare live normalized values for common metadata attributes before writing. Retain coercion and live text comparison to repair external edits.

Includes patch changes for octane and @octanejs/mcp-server, regressions, production browser controls, reproducible benchmark runners, and deterministic ratio guards.

Why

These paths run per changed host value, mount, or native event. The changes remove measured repeated work while preserving native events, custom-element callbacks, SSR/hydration identity, getter ordering, and suspended-render rollback.

Performance evidence

Frozen baseline: 58da3448b27130f82bdc447fce05a5c661bd161e. Same fixtures and build settings for each comparison.

  • 256 hosts × five changed static attributes: 1,280 → 0 generic writer calls; unchanged renders remain zero.
  • 128 unchanged metadata renders: 384 → 0 native attribute writes, with external-edit repair verified.
  • 15 spread props plus one direct prop, 12 updates: 396 → 0 normalization/winner/order array expressions; writer records and Maps remain unchanged. Stable two-handler metadata records: 24 → 0. SSR alias winner/order arrays: 240 → 12.
  • 256 three-root rows: 1,794 → 770 insertBefore calls; 256 → 0 label Text creations. Flat-mount and keyed-reverse controls retain their original operation counts.
  • 128 native clicks: event type Set probes 1,408 → 0, portal-parent reads 2,304 → 0, temporary private symbols at handlers 3 → 0. All 1,280 framework and 128 native-after callbacks remain correct.
  • Full production attribute fixture bundle: 165,755 → 167,873 minified bytes; 53,771 → 54,375 gzip bytes. Identical fixture/entry hashes. This includes all changes in the PR; final sample timings overlapped core validation and are not used for a latency claim.
  • Event-only minified runtime cost: +713 bytes, +290 gzip bytes. Per-type records live with existing registration tables; dispatch frames scale with maximum nested depth and clear Event/DOM references after use.

Spread and event paired timings were noisy, including unchanged controls. These results support source-work/native-operation claims, not a throughput or heap-allocation claim. Commands, counters, retained costs, and timing distributions are documented in benchmarks/dom-attributes, benchmarks/dom-events/SPREAD.md, benchmarks/dom-template-mount, and benchmarks/event-delegation/README.md.

Validation

  • pnpm format:check (scoped formatting recorded below)
  • pnpm typecheck (scoped checks recorded below)
  • pnpm test (local core and CI results recorded below)
  • Core and public typetests: tsgo --noEmit against packages/octane/tsconfig.json and packages/octane/typetests/tsconfig.json.
  • Focused dev/production regressions: events 132 tests; spreads 120 tests; templates/text 8 tests; static attributes/head targeted coverage.
  • Production Chromium: nested/redispatched native events, exact descriptors, late registration, last-portal teardown, open/closed shadow roots, custom-element sibling observations and owned text, iframe adoption, SSR-shaped hydration, empty text identity.
  • Deliberate-red checks fail for broken alias precedence (client/server), stable-style getter skipping, attribute boolean removal, URL filtering, head rollback, template/text mounting, nested event state, late type registration, and portal teardown; candidate restored afterward.
  • Scoped pnpm format:files:check: all changed source/test/benchmark files pass. git diff --check passes.
  • All 32 new deterministic guards pass: attributes 4, spreads 18, templates 6, event dispatch 4. Existing event production controls also pass.
  • Broad core dev/production run: 16,972 passed, 14 expected failures; three assertions and two suite imports fail for baseline dependency-layout reasons reproduced with frozen owning source. React differential suites excluded from this local run.
  • TSRX checks: attribute and template benchmark fixtures pass; byte-identical new test fixture copies pass in an isolated TSRX config. Existing host-source fixture retains its same four baseline duplicate-attribute diagnostics; new exports introduce none.
  • pnpm sync and changeset/release-plan validation completed; no unrelated generated changes.

Local dependency limitations: imperative-dom cannot load its React oracle because @tsrx/react-runtime is absent (both modes); external-hook-slot expects a missing installed workspace package link (both modes); browser-compiler-bundle expects a package path segment absent from the local unpacked parser path (dev only). Baseline/candidate probes reproduce each failure. Normal repository CI configuration is unchanged. Current-head CI passed; see the linked run below.

Review and CI follow-up

The first full CI run passed every behavior/parity/browser/type/lint/package/example job except the MCP suite-catalog assertion (plus its dependent aggregate checks). Commit ca1c7d0eb adds the three benchmark suites to the MCP schema; its 15 focused tests pass.

Bugbot’s parser-sensitive text concern was checked against frozen baseline and candidate in Chromium. All ten cases, including dirty textarea value/defaultValue/reset behavior and multi-root table templates, produce identical observations. Ten retained CI browser tests pass. The review thread is answered and resolved; runtime/compiler code remains unchanged in the follow-up. The new browser test passes scoped TypeScript checking; fixture TSRX checking remains blocked by the documented local React-runtime dependency.

Current-head CI passed 26/26 jobs for ca1c7d0eb. Bugbot's follow-up review passed with no issues found. The PR is ready for review, contains the live main base, and has no unresolved review threads.

Risk / follow-ups

  • Spread snapshots, source rows, arbitrary-name dictionaries, getter/symbol reads, and alias sorting remain where required; this is not zero-allocation spread rendering.
  • The audit's proposed permanent Event shadows would change own-property observability. Required public descriptor restoration/deletion remains; this PR does not claim to prevent V8 dictionary mode entirely.
  • Live head reads remain necessary for external-edit repair. The head change trades redundant writes for attribute reads and retains textContent comparison.
  • Custom-element templates retain sequential insertion. Other polymorphic DOM reads and dynamic descriptor-renderer work remain covered by their separate Track V8 performance audit findings across runtime, SSR, universal core, and compiler output #981 findings.

Provenance

  • An agent produced this diff (agent-authored)

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Medium Risk
Touches core production DOM writes, spread resolution, template mount/hydration, and native delegated dispatch; regressions would surface as subtle DOM or event-order bugs despite new guards and tests.

Overview
This PR trims hot-path work in the client compiler and runtime while keeping hydration, rollback, native event semantics, and custom-element behavior unchanged.

Static attributes and head metadata: Production compilation can route safe scalar bindings to setPlainAttribute / setURLAttribute (and matching *IfChanged helpers) instead of the generic setAttribute router. Common <title> / <meta> updates compare live normalized values before writing so repeated renders skip redundant native head mutations without dropping external-edit repair.

Spread hosts: setHostPropSources and ssrAttrs reuse in-place writer records, drop per-update normalization/winner/order tuple churn, skip unchanged non-controlled props (including stable event handlers where safe), and keep alias/class merge semantics.

Template mounting: Multi-root clones can cache native DocumentFragments and mount with a single insertBefore, with a per-node fallback when custom elements or customized built-ins require sequential connection order. Only-child text bindings can reuse parser-seeded text nodes via htext(..., seeded); sibling text holes use replaceChild in htextSwap.

Delegated events: Event types get shared registration metadata (keys + category flags). Dispatch stores propagation/current-target state in reusable frames instead of temporary Event symbols, avoids Set/portal-parent probes on portal-free paths, and bumps an event-route epoch when portal topology changes so in-flight dispatch keeps the captured route.

Tooling: Adds deterministic benchmark suites (dom-attributes, dom-template-mount, spread-hosts, event-delegation dispatch-work), 32 ratio guards in benchmarks/baselines/ratios.json, focused tests/fixtures, and registers those suites on @octanejs/mcp-server. Patch changeset for octane and MCP.

Reviewed by Cursor Bugbot for commit ca1c7d0. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent perf PR: performance work labels Sep 12, 2026
@domgan-oai
domgan-oai marked this pull request as ready for review September 12, 2026 21:48

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit ad06fef. Configure here.

Comment thread packages/octane/src/compiler/compile.js Resolved
@domgan-oai
domgan-oai merged commit 8a45222 into octanejs:main Sep 12, 2026
32 checks passed
domgan-oai added a commit that referenced this pull request Sep 15, 2026
* perf: reuse nested explicit child key prefixes (#1060)

* perf: stabilize remaining runtime object shapes (#1067)

* perf: reduce remaining DOM and event overhead (#1068)

* perf: reduce remaining DOM and event overhead

* test: cover parser text hosts and sync benchmark catalog

* fix: update TanStack Router and SSR Query bindings

* fix: register Router parity checks and migrate example SSR redirects

* fix: update Mantine, Window, and compatibility bindings (#1074)

* chore: verify react-is 19.3 and repair binding audit intake

* fix: preserve configured upstream test discovery boundaries

* perf: reduce effect and scheduler bookkeeping (#1070)

* fix: update Window direction handling and compatibility evidence

* fix: preserve error boundary reset refs and hydration

* test: retain pinned error boundary declaration artifact

* fix: use live reset from native error fallback

* perf: reduce repeated hook bookkeeping (#1076)

* perf: reduce repeated hook bookkeeping

* test: follow shared helpers in Lynx compatibility evidence

* fix: update Mantine Hooks compatibility to 9.6.1

---------

Co-authored-by: domgan-oai <[email protected]>

* fix: update UI integration bindings (#1075)

* chore: verify react-is 19.3 and repair binding audit intake

* fix: preserve configured upstream test discovery boundaries

* fix: preserve Electron 44 clipboard promise results

* fix: preserve color channels when changing picker opacity

* fix: register Colorful parity lanes and preserve Playwright selectors

* fix: discover complete binding test inventories

* chore: refresh Sanity loader dependency baseline

* fix: follow shared binding test configurations

* fix: update Thinking Orbs with verified engine imports

* test: preload the Thinking Orbs differential oracle

* perf: reduce effect and scheduler bookkeeping (#1070)

* fix: update Resizable Panels with complete parity coverage

* fix: route required Resizable Panels browser tests through parity CI

* fix: update Window direction handling and compatibility evidence

* fix: preserve error boundary reset refs and hydration

* test: retain pinned error boundary declaration artifact

* fix: use live reset from native error fallback

* perf: reduce repeated hook bookkeeping (#1076)

* perf: reduce repeated hook bookkeeping

* test: follow shared helpers in Lynx compatibility evidence

* fix: update Mantine Hooks compatibility to 9.6.1

* perf: split SSR escape pre-scan by string length (#1073)

* perf: reduce SSR bookkeeping cost (empty snapshots, scoped counters, dev checks) (#1077)

* perf: share empty SSR replay snapshots and allocate hook maps lazily

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* perf: flatten SSR frame scoped counters and hoist dev-mode checks

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* feat(jotai): migrate bindings to Jotai 3 (#1062)

* feat(jotai): migrate bindings to Jotai 3

* test(jotai): register hydration and pristine CI ownership

* perf: reduce compiler output allocation work (#1078)

* perf: reduce compiler output allocation work

* fix: register compiler output benchmark with MCP server

* fix: preserve root transaction rollback and reduce journal work (#1079)

* fix: invalidate stale retained Provider output (#1080)

* fix: update Motion bindings to 13.2 with scoped props and native host fixes

* fix: register Motion parity cases and refresh shared evidence hashes

* fix: preserve descriptor ownership and reduce renderer work (#1081)

* test: make motion parity checks reproducible in CI

* fix: update Alien Signals binding to 0.4.0

Add selectors, deferred snapshots, phase effects, batching and trigger APIs.
Reuse alien-signals 3.2.1 while retaining functional setters and cancelled
scope ownership. Refresh the immutable upstream suite, full strict public
contracts, SSR/hydration evidence and packed browser consumers.

Isolate pristine Bun types from workspace build plugins and repair the
verification defects exposed by the new upstream declarations and suite.

* test: separate Alien Signals parity projects

* fix: update Intersection Observer to 11.0.1

* fix(hook-form): update compatibility binding to 7.88.0

* test(hook-form): prepare clean typechecks and isolate parity projects

* fix: update MobX bindings for MobX 7

* fix: preserve deferred JSX props and MobX CI coverage

* fix: preserve context and render body ownership (#1082)

* fix: preserve context and render body ownership

* fix: validate lazy ownership through memo bailouts

* perf: resolve renderer-region owner with one chain-top lookup (#1085)

Context reads that resolve to a context default called
rendererRegionOwnerForBlock on every read, and it did a guaranteed-miss
WeakMap.get at every ancestor: bindRendererRegionOwner rejects any block
that is not a top-level root, so only chain tops can be keys. Climb to
the top directly and do one lookup; a module counter collapses the
common no-owner case to a single integer test.

Generated with [Devin](https://devin.ai)

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* Version Packages (#1058)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat: complete remaining Strong compiler checks (#1083)

* feat: complete remaining Strong compiler checks

* fix: preserve Strong inference and mutation semantics

* test: align mapped list fixture with Strong policy

* fix: harden Strong declaration caching and editor analysis

Review fixes for the automatic declaration cache and the new analyzers:

- Reuse the parsed module for renderer-region analysis in the template
  policy and trusted-HTML check. The second strict parse threw out of
  `compileToVolarMappings` on shapes the tolerant editor parser accepts,
  and the TypeScript plugin then dropped every Strong diagnostic for the
  file. Restore the three base fixtures that had been rewritten around it.
- Keep template `@for` row declarations out of the cache: the analysis
  does not model row bindings, so they were cached with empty inputs and
  rendered stale after item updates.
- Count hooks executed inside nested functions when judging a candidate,
  so `compute(() => useContext(Ctx))` is not frozen on its first value.
- Track class declarations as late bindings so a cache input never reads
  a class before its declaration runs.
- Recognise cleanup returned by an expression-bodied effect callback.
- Keep state provenance on values that mix props and state, and leave
  hook-named JSX builders with unknown arguments.
- Treat authored dependency entries whose root is imported or
  module-invariant as redundant instead of conflicting.
- Accept the `octane/strong` pragma as explicit ownership in slotHooks,
  forward plain-module Strong hints through the bundler, and keep a
  line-comment pragma readable when swapping to Strong JSX types.

Every change carries a regression test that fails without it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* fix: address Strong compiler review and preserve hook ownership

* docs: refresh Strong audit against release main

---------

Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>

* perf: reduce universal renderer materialization and preparation work (#1086)

* perf: reduce universal renderer materialization and preparation work

* fix: preserve own-key semantics in retained feature scans

* chore: release universal benchmark tooling with runtime changes

* fix: align universal benchmark order in MCP schema

* perf: reuse SSR replay snapshots and streaming subscriptions (#1088)

* perf: investigate remaining client hot paths (#1090)

* perf: finish remaining runtime audit investigations (#1092)

* perf: skip context-dependency scans when no provider has committed (#1091)

Every memo/implicit bailout re-scanned the block's context dependency
maps even when no Context.$$version had moved — per-survivor bookkeeping
that was pure cost on context-quiescent renders. Stamp each block with
the shared context epoch (Symbol.for'd cell so duplicated module copies
share it at which its dep entries are known current; bailouts and
context-propagation refreshes now skip both scans while the epoch is
unmoved. provideContext and universal-renderer commits bump the epoch
beside the version; renderResolved bumps it at entry so external
bumpers (react-hosted mirrors, which publish then commit through
root.render) can never be masked by the fast path. Stale merges poison
the stamp so pending consumer refreshes are never skipped.

Generated with [Devin](https://devin.ai)


EOF
)

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(website): refresh published benchmark results (#1089)

* feat(i18next): update binding to react-i18next 17.0.14

Tracks react-i18next 17.0.14 (v17.0.14, 5f8c5f9) while preserving the
complete existing Octane surface and documented divergences.

Source changes from the upstream delta: useTranslation keys its wrapper
cache on language/resolvedLanguage/languages and warns
SUSPENDED_WHILE_LOADING; IcuTransWithoutContext falls back to
i18nKey || defaultTranslation; TransWithoutContext uses HTML.parse
allowedTags, unwraps a top-level Octane Fragment passed through
children, and carries the updated missing-i18n warning wording.

Adds the pinned upstream tree and artifact (124 files, MIT), provenance,
source ledger, closure and baseline audit artifacts, pristine/adapted
parity lanes covering 495 React and 458 Octane specs plus 314 type
registrations across fourteen programs, public-entry type assertions
for all three subpaths, and refreshed status/UPSTREAM metadata.

Extends react-parity/react-port tooling for multi-program type suites
and records the jest-dom vitest-instance inline fix in the pristine
config. Regenerates lockfile and manifest evidence hashes.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* merge: resolve manifest ownership against branch evidence

Restore branch-side react-parity manifests (their lanes claim the
testExecution entries this branch adds) and refresh lockfileSha256 for
the merged lockfile. Keeps catalog resolution react-resizable-panels
4.12.4 + ripple 0.3.128.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: discriminate scoped-read replay by source kind after merge

replayScopedContextReads arrived on main typed Map<Context, number>
while this branch widened scoped captures to ScopedReads (Context |
StoreInst). Replaying store keys through recordContextDependency was
unsound: stores carry snapshots, not $$version, and have no block
context-dependency channel. Discriminate with $$version presence —
contexts still record block deps; both kinds propagate to the enclosing
resolver's capture.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: give Vite-SSR hydration specs CI headroom

The parity-shard failures on this head were 5s timeouts in three
hydration specs that boot a Vite SSR server per case — pass in <1.5s
idle, ~4s under local load, and over 5s in a 246-lane CI shard. Same
signature as the load flakes already observed on main. Adds per-test
30s timeouts to the authored specs and a 15s project timeout to the
tanstack-query adapted suite (matching tanstack-router's config),
rehashing the affected manifests.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(tanstack-ai): raise ai-ui-hydration timeout for shard load

The dedicated hydration lane boots a fresh Vite SSR server through
renderHydrationFixture; under full-shard CI contention the 5s default
timed out (same class as the earlier tanstack-table/router/query fixes).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: raise infra timeouts hit under CI shard load

cli analyze tests spawn the CLI per case and mantine-hooks browser
navigation waits on a fresh-page networkidle from a busy Vite dev
server; both hit the 5s default under full-shard contention. The
describe-level 30s budget and a 30s goto timeout keep the deliberate
per-interaction deadlines while giving infrastructure room.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: raise base vitest testTimeout to 30s for shard load

Hydration, browser, and CLI lanes boot per-test infrastructure whose
cold start can exceed the 5s default under full-shard CI contention;
successive runs have rotated through different victims (tanstack-query,
table, router, ai, virtual, mantine-hooks, cli analyze). A base 30s
covers the slowest observed cold start while per-project overrides keep
their larger budgets.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(octane-evals): regenerate user-app corpus manifest after merge

The main merge resolved manifest.jsonl to a side whose graderDigest no
longer matched the merged grader files; the corpus staleness check
flags it. Regenerated via generate-user-app-corpus.mjs; --check passes.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: domgan-oai <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Dominic Gannaway <[email protected]>

---------

Co-authored-by: domgan-oai <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Dominic Gannaway <[email protected]>
trueadm added a commit that referenced this pull request Oct 2, 2026
…g and SSR metadata ratio guards (#1591)

* fix: recover the template-call-memo, transition-hooks, signal-favoring and SSR metadata ratio guards

Four ratio suites breached deterministic guards on main. Each was bisected
over the suite's own output, with every old checkout on its own installed
dependencies.

- template-call-memo (0df8be7, #1265): a Strong `@for` row calling
  `console.log` lost DEP-PURE because `console` is a host global. The
  receiver of a statement-position `console.method()` call no longer counts
  as an ambient row read; its arguments still do.
- ssr-final-metadata (5ead1ff, #1069): `ssrComponent` re-encoded a keyed
  descriptor's key that ssrChildValue's `child-key` membrane already holds.
  ssrChildValue now passes `identityScoped: 'key'`.
- transition-hooks (5ead1ff, #1069; 8a45222, #1068): runTransition's
  native candidate resolver and fireEventSlot's invoke callback no longer
  allocate a closure per transition or delegated event. The pooled event
  frame's first allocation gets a one-time work-model allowance.
- signal-favoring (5ead1ff, #1069): the JSX static-fragment fold matches
  `_$createElementFromConfig(site, C, props)` again, and bindSignalChild keeps
  textHoleUpdate's primitive fast path. Bump samples are calibrated to 20 ms
  because a TSRX bump sat under Chromium's 100 us clock floor; the dialect
  ceiling moves to 18 from same-runner measurements before #1069 and after
  this fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix: keep a skipped text hole's token unpublished and fit the chained-JSX budget

bindSignalChild returned the new primitive as its token even when the block
was already pending, so childSlot skipped the write. The repeated render then
matched that token and left the previous text in place. A skipped pass now
keeps the token unpublished; the new test drives a mid-render self-update
through an earlier hole.

invokeEventSlot is an if/else chain without the redundant bundle alias, which
brings root-chained-jsx back to its raw and gzip ceilings. Removing the
per-event closure still costs 2 brotli bytes, so that budget moves one
32-byte step to 25344.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* perf: trim bindSignalChild's primitive text fast path

Fold the pending-pass check into the primitive-token flag and drop the
ownsHost test: only the implicit childSlot path passes ownsHost, and that
path's implicitSignal already keeps it off the fast path. Saves 36 raw and
19 gzip bytes in bundles that reach bindSignalChild.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent perf PR: performance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant