Skip to content

perf(octane): drop element-descriptor dispatch from holes and lists without a factory - #2258

Merged
trueadm merged 3 commits into
mainfrom
perf/hole-value-capabilities
Oct 28, 2026
Merged

trueadm merged 3 commits into
mainfrom
perf/hole-value-capabilities

Conversation

@trueadm

@trueadm trueadm commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Renderable holes and the keyed child list now dispatch element descriptors only in a bundle that can build one. A Strong-mode or pure .tsrx app whose holes hold text (typed props reach the compiler as plain {props.message.author} holes) ships no component-descriptor, Fragment, keyed-element or host-descriptor code.

  • ELEMENT_DESCRIPTORS (runtime/drivers.ts): every descriptor factory sets it (createElementFromConfig, the scoped element and value records, and through them createElement, createHostElement and deferRecord). childSlot, the keyed list (flatten, keyed-single preparation, positional children, deoptItemBody, mappedDeoptItemBody, reconcileDeoptNode, descNeedsBlocks, updateDeoptComponent) and hydration's claim checks read it before any descriptor test, so oxc folds those branches away without a factory.
  • HOST_DESCRIPTORS (perf(octane): ship the host descriptor renderer only where host descriptors exist #2247's driver) now also gates childSlot's upgrade handoff, anchorless promotion and pending item pairs, lists.ts's self-marking of host items, and the compiled-map host takeover.
  • Hole-free residue (js-framework):
    • descNeedsBlocks and deoptChildNamespace were kept only by their own recursion and become named function expressions.
    • lists.ts's descriptor self-marking is gated.
    • The destination lookup of opaque (namespace 3) templates is installed by enableOpaqueTemplates, which the compiler emits only for modules with such a template.
  • normalizeClass still ships for class={cond ? 'a' : ''}. The compiler routes every HTML class binding to setClassName, which composes inline (typeof value === 'string' ? value : normalizeClass(value)). Dropping it needs a string-only class writer selected from isKnownStringExpression, registered with the presentation-hydration writers. Proposed as a separate task.

Why the keyed list stays in every bundle with array holes

Arrays of primitives must keep rendering.

Behavior kept for a bare function in an array ({[Comp]}): it renders as a body, the same in every bundle. React renders nothing there and warns in development. docs/differences-from-react.md doesn't document that case, but descriptor-list-hydrate.test.ts pins render-as-body through its "render function from an array forwarding wrapper" cases (#710). So this PR keeps render-as-body and puts it in the minimal tier rather than behind an installer. array-text-children.test.ts checks it on the server and the client: before any element factory runs, while one first runs under a live list, and after.

Rendering a function item needs a Block at its position, with teardown, transactions and hydration adoption, which is the keyed list. A text-only list could therefore never be the whole minimal tier.

An earlier revision of this PR added such a list behind a CHILD_LISTS installer, plus a createPortalChild compiler proof for returned portals. Both are dropped. As a side effect, descriptor apps no longer carry the text list as dead code (about 0.8 KB gzip).

In relay, 6.5 KB raw of deopt.ts stays reachable from any array-valued hole:

  • List engine: renderPreparedChildList 1,781, deoptItemBody 1,386, mappedDeoptItemBody 118 (named unconditionally as mapSlot's fallback body), teardownChildForSlot 93.
  • Keys and flattening: appendScopedDeoptKey, flattenReactChildContainer, nestedDeoptKeyPrefix, prepareDeoptList and smaller helpers, about 1.3 KB.
  • Text items: reconcileDeoptNode plus the deferred text-order helpers, about 0.66 KB.
  • Self-marked item promotion: promoteSelfMarkedItem, landItemPair and itemRange, about 0.66 KB. Only host-descriptor and compiled map rows self-mark, so this could be gated once mapSlot installs its fallback item body. That is a follow-up candidate.
  • Item classification and iterable reading: descNeedsBlocks 240, iterableChildArray 185.

A portal-only list path would not remove the list, because pinned function items need it too.

Validation

Bytes. Production vite build (oxc minify), all client JS, base d44d6d9 → head:

app raw gzip
relay 166,580 → 162,222 (−4,358) 54,189 → 52,932 (−1,257)
draftboard 170,890 → 165,982 (−4,908) 55,099 → 53,625 (−1,474)
streambox 211,460 → 207,053 (−4,407) 67,796 → 66,496 (−1,300)
gridlab −2,233 −684
js-framework (octane-tsrx) 85,090 → 83,950 (−1,140) 28,558 → 28,234 (−324)
threadline −631 −170
flowboard +205 +132
pulseboard +205 +145

Apps that build descriptors pay about 200 raw bytes for the flag checks and installers.

Performance.

  • js-framework pair.mjs --work-only on this head: all 40 calls/DOM counters are identical to base.

  • octane-jsx select and select_lots were checked locally because the CI report flagged select at +13.3% on the previous head. The harness ran this head's and base's production builds, plus a null control: a second page on the base build. The three pages alternated each sample, with pair.mjs's calibration and selection checks, 80 samples per side, in two rounds. The +13.3% did not reproduce:

    op round head/base control/base
    select 1 0.994 [0.985, 1.000] 0.994 [0.988, 1.000]
    select 2 1.003 [0.994, 1.013] 1.000 [0.993, 1.013]
    select_lots 1 0.977 [0.973, 0.982] 1.014 [1.009, 1.019]
    select_lots 2 0.990 [0.985, 0.995] 1.020 [1.015, 1.025]

    Base medians were 0.110–0.111 ms per select. The CI work counters for both ops match base: calls went from 8,111 to 8,110 and from 80,111 to 80,110.

  • Earlier revision (every change kept here, plus the text list and installer), timed with pair.mjs (30 pairs, run twice): no op's interval lay beyond ±3% in either run.

  • dbmon (tsrx, jsx and the createElement deopt fixture; whole-suite rounds plus a per-sample alternating harness): within that harness's measured null floor, where head against itself reads 1.014 [1.009, 1.019].

  • chat-stream: DOM census identical, timings within noise. The descriptor-stream sidecar was within noise, as were the descriptor-renderer children and forms work counts. props.mjs and events.mjs fail identically on base and head.

  • This head, per-sample dbmon: deopt tick 0.983 [0.965, 1.036], tick_partial 1.005 [1.005, 1.010], sort 1.027 [0.948, 1.079]; jsx tick 0.995, tick_partial 1.000.

Checks:

  • pnpm format:files:check on the changed files (repo-wide pnpm format:check left to CI)
  • tsc -p packages/octane/tsconfig.json and pnpm typecheck:files on the changed files. Only the existing _server-fixture.ts/TS4111 baseline remains; repo-wide pnpm typecheck left to CI.
  • pnpm test: left to CI, per the local test-load rule
  • Targeted tests:
    • array-text-children.test.ts (new): the array-of-text contract, plus function items rendering as bodies on the server and client. It runs before an element factory runs, while a factory first runs under a live list, and after.
    • optional-driver-bundle.test.ts (new "renderable holes" section): a Strong app with holes, text arrays, compiled children and a returned portal keeps no descriptor-only declaration and no descriptor-guarded branch of child-slots.ts or deopt.ts. A descriptor app is the control that proves the oracle sees each one.
    • Both pass in octane and octane-prod. 198 related runtime and hydration files (4,121 tests) pass.
    • relay e2e: 5/5. draftboard, flowboard and streambox e2e: 5/5 each on the earlier revision.
    • Removing a gate fails the reachability check.
  • perf-review: node scripts/perf-review-scan.mjs → no candidates. The hot paths touched add one boolean load each, with no new field, allocation or call:
    • childSlot, per non-primitive hole render.
    • deoptItemBody and list flattening, per item.
    • Descriptor factories, per creation.
  • concise-code: src +102 −34 (runtime +98 −34).
    • New exports: ELEMENT_DESCRIPTORS/enableElementDescriptors and enableOpaqueTemplates, each with a caller.
    • Alternatives rejected: a text-only minimal list and installer (inconsistent function-item behavior across bundles), and React semantics for function items (pinned by perf: reduce SSR HTML payload and hydration markers #710's test).

Risk / follow-ups

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


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


Note

Medium Risk
Touches core child reconciliation and hydration claim paths behind boolean guards; behavior must stay identical once a factory runs, and wrong folding would break descriptor or host-heavy apps.

Overview
Renderable holes and keyed child lists now treat JSX-style element descriptors as a lazy capability. Apps that never call an element factory (typical Strong-mode / pure .tsrx with text-only holes) no longer ship descriptor classification, Fragment/keyed-element paths, host-descriptor upgrades, or related hydration branches—minifiers can fold guarded code away.

ELEMENT_DESCRIPTORS is flipped on only when a factory runs (createElementFromConfig, scoped element records, etc.). childSlot, deopt.ts list prep/reconcile, and hydration read this flag (and existing HOST_DESCRIPTORS) before isElementDescriptor / host-only logic. enableOpaqueTemplates is compiler-emitted for namespace-3 templates so deoptChildNamespace stays out of bundles without opaque templates; descNeedsBlocks / deoptChildNamespace become named function expressions so descriptor-free bundles can drop them when nothing references them.

Tests: array-text-children.test.ts locks array-of-text behavior with and without a factory; optional-driver-bundle.test.ts asserts production bundles with text holes retain no descriptor-only source ranges.

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

A renderable hole now handles a non-primitive kind only when something in the
bundle can create it. Descriptor factories install ELEMENT_DESCRIPTORS, and
every factory of a list item other than text (descriptors, compiled children
and maps, createPortal) installs the keyed list (CHILD_LISTS). Without one, an
array or iterable child renders as a text list: one Text per leaf, keyed by
index path, adopting the server's per-item ranges when hydrating.

The compiler routes a portal that a module-local component returns to
createPortalChild, which supports only lone portal children. Hole-free bundles
also drop descNeedsBlocks, deoptChildNamespace, childrenIterator and
isHostDescriptor.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent perf PR: performance work labels Oct 28, 2026
@trueadm
trueadm marked this pull request as ready for review October 28, 2026 02:02
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website-mcp 66472f0 Commit Preview URL

Branch Preview URL
Oct 28 2026, 09:43 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website 66472f0 Commit Preview URL

Branch Preview URL
Oct 28 2026, 09:44 AM

@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 prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Host path leaves text-list nodes
    • Added state.texts !== null to the pure-host path guard on line 1130, so clearChildContent is called when transitioning from a text list to a host element, matching the analogous guard in the text/empty path.

Create PR

Or push these changes by commenting:

@cursor push 0741e305ac
Preview (0741e305ac)
diff --git a/packages/octane/src/runtime/child-slots.ts b/packages/octane/src/runtime/child-slots.ts
--- a/packages/octane/src/runtime/child-slots.ts
+++ b/packages/octane/src/runtime/child-slots.ts
@@ -1127,7 +1127,8 @@
 			// Pure host/text → reconcile in place, REUSING the existing node so DOM
 			// state survives a re-render. Switching in from a component/text first
 			// tears that down (also nulls a stale hostNode).
-			if (state.block !== null || state.text !== null) clearChildContent(state);
+			if (state.block !== null || state.text !== null || state.texts !== null)
+				clearChildContent(state);
 			if (state.end === null) {
 				// ANCHORLESS: no markers — the element self-delimits, so reconcile
 				// straight against the tracked node. A same-tag value patches it in

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit e41ff79. Configure here.

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🔴 bundle-size: 46 value(s) increased
  • 🔴 bundle-reachability: 38 value(s) increased

Compares 8f5d43294, the merge commit's first parent with ddbb3f244 on the same runner. Any increase in a js-framework work counter fails this check; byte changes are a report. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

All 20 timed operations (20 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 3.700 3.692 −8.6% −12.3% … −2.9% ⚪ within noise
octane-tsrx replace 9.208 9.350 +2.8% −5.9% … +8.9% ⚪ within noise
octane-tsrx add 3.133 3.217 ±0.0% −6.1% … +6.9% ⚪ within noise
octane-tsrx update 0.086 0.087 +3.1% −1.4% … +6.5% ⚪ within noise
octane-tsrx select 0.006 0.006 +1.1% −1.1% … +3.0% ⚪ within noise
octane-tsrx swap 0.018 0.018 +2.6% −1.0% … +5.9% ⚪ within noise
octane-tsrx remove 0.018 0.018 −1.8% −7.9% … +5.1% ⚪ within noise
octane-tsrx runlots 25.917 25.417 −2.5% −6.4% … +2.5% ⚪ within noise
octane-tsrx select_lots 0.007 0.007 +3.6% ±0.0% … +5.0% ⚪ within noise
octane-tsrx clear 56.517 53.600 −0.0% −4.7% … +4.0% ⚪ within noise
octane-jsx run 4.650 4.625 −1.8% −7.7% … +0.0% ⚪ within noise
octane-jsx replace 8.458 8.325 −7.9% −14.5% … +0.0% ⚪ within noise
octane-jsx add 3.508 3.425 +0.0% −4.6% … +3.4% ⚪ within noise
octane-jsx update 0.179 0.187 −0.6% −5.4% … +4.4% ⚪ within noise
octane-jsx select 0.083 0.086 −1.3% −4.4% … +1.4% ⚪ within noise
octane-jsx swap 0.130 0.137 −0.3% −1.9% … +3.7% ⚪ within noise
octane-jsx remove 0.115 0.108 +1.3% −2.9% … +7.3% ⚪ within noise
octane-jsx runlots 27.983 26.333 −3.5% −7.1% … +1.0% ⚪ within noise
octane-jsx select_lots 0.893 0.891 +1.0% −2.6% … +2.8% ⚪ within noise
octane-jsx clear 62.217 52.800 −2.4% −10.6% … +13.7% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx js_raw 77,634 76,496 −1,138 (−1.5%) 🟢
octane-tsrx js_gzip 26,358 26,042 −316 (−1.2%) 🟢
octane-tsrx js_brotli 23,834 23,545 −289 (−1.2%) 🟢
octane-tsrx app_gzip 2,546 2,548 +2 (+0.1%) 🔴
octane-tsrx app_brotli 2,233 2,240 +7 (+0.3%) 🔴
octane-tsrx fw_raw 70,329 69,191 −1,138 (−1.6%) 🟢
octane-tsrx fw_gzip 23,812 23,494 −318 (−1.3%) 🟢
octane-tsrx fw_brotli 21,601 21,305 −296 (−1.4%) 🟢
octane-tsrx todo_js_raw 89,877 88,737 −1,140 (−1.3%) 🟢
octane-tsrx todo_js_gzip 30,764 30,462 −302 (−1.0%) 🟢
octane-tsrx todo_js_brotli 27,638 27,321 −317 (−1.1%) 🟢
octane-tsrx todo_app_gzip 2,677 2,678 +1 (+0.0%) 🔴
octane-tsrx todo_app_brotli 2,267 2,263 −4 (−0.2%) 🟢
octane-tsrx todo_fw_raw 83,928 82,788 −1,140 (−1.4%) 🟢
octane-tsrx todo_fw_gzip 28,087 27,784 −303 (−1.1%) 🟢
octane-tsrx todo_fw_brotli 25,371 25,058 −313 (−1.2%) 🟢
octane-tsrx chat_js_raw 88,630 87,494 −1,136 (−1.3%) 🟢
octane-tsrx chat_js_gzip 30,497 30,195 −302 (−1.0%) 🟢
octane-tsrx chat_js_brotli 27,505 27,185 −320 (−1.2%) 🟢
octane-tsrx chat_app_brotli 2,729 2,737 +8 (+0.3%) 🔴
octane-tsrx chat_fw_raw 81,815 80,679 −1,136 (−1.4%) 🟢
octane-tsrx chat_fw_gzip 27,384 27,082 −302 (−1.1%) 🟢
octane-tsrx chat_fw_brotli 24,776 24,448 −328 (−1.3%) 🟢
octane-tsrx weather_js_raw 124,180 123,040 −1,140 (−0.9%) 🟢
octane-tsrx weather_js_gzip 41,730 41,383 −347 (−0.8%) 🟢
octane-tsrx weather_js_brotli 37,102 36,779 −323 (−0.9%) 🟢
octane-tsrx weather_app_gzip 8,384 8,386 +2 (+0.0%) 🔴
octane-tsrx weather_app_brotli 7,130 7,124 −6 (−0.1%) 🟢
octane-tsrx weather_fw_raw 100,197 99,057 −1,140 (−1.1%) 🟢
octane-tsrx weather_fw_gzip 33,346 32,997 −349 (−1.0%) 🟢
octane-tsrx weather_fw_brotli 29,972 29,655 −317 (−1.1%) 🟢
octane-tsrx bindings_js_raw 681,807 681,980 +173 (+0.0%) 🔴
octane-tsrx bindings_js_gzip 225,941 226,054 +113 (+0.1%) 🔴
octane-tsrx bindings_js_brotli 192,606 192,811 +205 (+0.1%) 🔴
octane-tsrx bindings_app_raw 357,944 357,908 −36 (−0.0%) 🟢
octane-tsrx bindings_app_gzip 118,654 118,666 +12 (+0.0%) 🔴
octane-tsrx bindings_app_brotli 98,536 98,665 +129 (+0.1%) 🔴
octane-tsrx bindings_fw_raw 323,863 324,072 +209 (+0.1%) 🔴
octane-tsrx bindings_fw_gzip 107,287 107,388 +101 (+0.1%) 🔴
octane-tsrx bindings_fw_brotli 94,070 94,146 +76 (+0.1%) 🔴
octane-tsrx shell_js_raw 293,702 288,479 −5,223 (−1.8%) 🟢
octane-tsrx shell_js_gzip 95,779 94,184 −1,595 (−1.7%) 🟢
octane-tsrx shell_js_brotli 83,426 82,044 −1,382 (−1.7%) 🟢
octane-tsrx shell_app_gzip 1,154 1,151 −3 (−0.3%) 🟢
octane-tsrx shell_app_brotli 1,035 1,030 −5 (−0.5%) 🟢
octane-tsrx shell_fw_raw 291,803 286,580 −5,223 (−1.8%) 🟢
octane-tsrx shell_fw_gzip 94,625 93,033 −1,592 (−1.7%) 🟢
octane-tsrx shell_fw_brotli 82,391 81,014 −1,377 (−1.7%) 🟢
octane-tsrx shell_client_js_raw 238,840 233,854 −4,986 (−2.1%) 🟢
octane-tsrx shell_client_js_gzip 77,678 76,184 −1,494 (−1.9%) 🟢
octane-tsrx shell_client_js_brotli 68,220 67,115 −1,105 (−1.6%) 🟢
octane-tsrx shell_client_app_gzip 1,159 1,158 −1 (−0.1%) 🟢
octane-tsrx shell_client_app_brotli 1,014 1,036 +22 (+2.2%) 🔴
octane-tsrx shell_client_fw_raw 236,933 231,947 −4,986 (−2.1%) 🟢
octane-tsrx shell_client_fw_gzip 76,519 75,026 −1,493 (−2.0%) 🟢
octane-tsrx shell_client_fw_brotli 67,206 66,079 −1,127 (−1.7%) 🟢
octane-tsrx wayfinder_js_raw 362,983 358,287 −4,696 (−1.3%) 🟢
octane-tsrx wayfinder_js_gzip 119,793 118,026 −1,767 (−1.5%) 🟢
octane-tsrx wayfinder_js_brotli 103,793 102,307 −1,486 (−1.4%) 🟢
octane-tsrx threadline_oxc_js_raw 140,465 139,834 −631 (−0.4%) 🟢
octane-tsrx threadline_oxc_js_gzip 46,924 46,773 −151 (−0.3%) 🟢
octane-tsrx threadline_oxc_js_brotli 41,319 41,217 −102 (−0.2%) 🟢
octane-tsrx threadline_esbuild_js_raw 174,877 174,959 +82 (+0.0%) 🔴
octane-tsrx threadline_esbuild_js_gzip 59,131 59,189 +58 (+0.1%) 🔴
octane-tsrx threadline_esbuild_js_brotli 52,198 52,236 +38 (+0.1%) 🔴
octane-tsrx pagecraft_oxc_js_raw 547,539 547,758 +219 (+0.0%) 🔴
octane-tsrx pagecraft_oxc_js_gzip 172,553 172,694 +141 (+0.1%) 🔴
octane-tsrx pagecraft_oxc_js_brotli 146,696 146,793 +97 (+0.1%) 🔴
octane-tsrx pagecraft_esbuild_js_raw 581,716 581,944 +228 (+0.0%) 🔴
octane-tsrx pagecraft_esbuild_js_gzip 188,659 188,828 +169 (+0.1%) 🔴
octane-tsrx pagecraft_esbuild_js_brotli 160,414 160,662 +248 (+0.2%) 🔴
octane-tsrx full_fw_raw 535,395 535,644 +249 (+0.0%) 🔴
octane-tsrx full_fw_gzip 168,033 168,134 +101 (+0.1%) 🔴
octane-tsrx full_fw_brotli 142,875 142,914 +39 (+0.0%) 🔴
octane-jsx js_raw 153,438 153,457 +19 (+0.0%) 🔴
octane-jsx js_gzip 50,193 50,228 +35 (+0.1%) 🔴
octane-jsx js_brotli 44,481 44,525 +44 (+0.1%) 🔴
octane-jsx app_brotli 2,890 2,892 +2 (+0.1%) 🔴
octane-jsx fw_raw 142,638 142,657 +19 (+0.0%) 🔴
octane-jsx fw_gzip 46,682 46,717 +35 (+0.1%) 🔴
octane-jsx fw_brotli 41,591 41,633 +42 (+0.1%) 🔴
octane-jsx shell_js_raw 337,775 337,829 +54 (+0.0%) 🔴
octane-jsx shell_js_gzip 110,237 110,271 +34 (+0.0%) 🔴
octane-jsx shell_js_brotli 95,812 95,799 −13 (−0.0%) 🟢
octane-jsx shell_app_gzip 772 769 −3 (−0.4%) 🟢
octane-jsx shell_app_brotli 667 665 −2 (−0.3%) 🟢
octane-jsx shell_fw_raw 336,672 336,726 +54 (+0.0%) 🔴
octane-jsx shell_fw_gzip 109,465 109,502 +37 (+0.0%) 🔴
octane-jsx shell_fw_brotli 95,145 95,134 −11 (−0.0%) 🟢
octane-jsx shell_client_js_raw 282,919 282,951 +32 (+0.0%) 🔴
octane-jsx shell_client_js_gzip 91,767 91,770 +3 (+0.0%) 🔴
octane-jsx shell_client_js_brotli 80,383 80,464 +81 (+0.1%) 🔴
octane-jsx shell_client_app_gzip 774 778 +4 (+0.5%) 🔴
octane-jsx shell_client_app_brotli 676 673 −3 (−0.4%) 🟢
octane-jsx shell_client_fw_raw 281,808 281,840 +32 (+0.0%) 🔴
octane-jsx shell_client_fw_gzip 90,993 90,992 −1 (−0.0%) 🟢
octane-jsx shell_client_fw_brotli 79,707 79,791 +84 (+0.1%) 🔴
octane-jsx full_fw_raw 535,395 535,644 +249 (+0.0%) 🔴
octane-jsx full_fw_gzip 168,033 168,134 +101 (+0.1%) 🔴
octane-jsx full_fw_brotli 142,875 142,914 +39 (+0.0%) 🔴

11 other measured values are unchanged.

Public-import reachability bundles (bytes)

target metric base head Δ
cli-spa-starter raw 70,780 69,645 −1,135 (−1.6%) 🟢
cli-spa-starter gzip 24,734 24,497 −237 (−1.0%) 🟢
cli-spa-starter brotli 22,249 21,992 −257 (−1.2%) 🟢
root-static-specialized raw 47,286 46,822 −464 (−1.0%) 🟢
root-static-specialized gzip 16,228 16,092 −136 (−0.8%) 🟢
root-static-specialized brotli 14,769 14,649 −120 (−0.8%) 🟢
root-chained-jsx raw 48,653 48,189 −464 (−1.0%) 🟢
root-chained-jsx gzip 16,736 16,613 −123 (−0.7%) 🟢
root-chained-jsx brotli 15,264 15,147 −117 (−0.8%) 🟢
root-static raw 84,799 79,989 −4,810 (−5.7%) 🟢
root-static gzip 27,978 26,537 −1,441 (−5.2%) 🟢
root-static brotli 25,244 23,932 −1,312 (−5.2%) 🟢
root-static-local raw 47,186 46,722 −464 (−1.0%) 🟢
root-static-local gzip 16,175 16,050 −125 (−0.8%) 🟢
root-static-local brotli 14,729 14,606 −123 (−0.8%) 🟢
root-callback-local raw 49,068 48,604 −464 (−0.9%) 🟢
root-callback-local gzip 16,830 16,706 −124 (−0.7%) 🟢
root-callback-local brotli 15,331 15,218 −113 (−0.7%) 🟢
hooks-state raw 57,086 56,622 −464 (−0.8%) 🟢
hooks-state gzip 19,569 19,445 −124 (−0.6%) 🟢
hooks-state brotli 17,794 17,680 −114 (−0.6%) 🟢
signal-counter raw 111,108 110,644 −464 (−0.4%) 🟢
signal-counter gzip 36,727 36,584 −143 (−0.4%) 🟢
signal-counter brotli 33,203 33,071 −132 (−0.4%) 🟢
signal-instance-derived raw 127,180 126,716 −464 (−0.4%) 🟢
signal-instance-derived gzip 41,315 41,193 −122 (−0.3%) 🟢
signal-instance-derived brotli 37,302 37,205 −97 (−0.3%) 🟢
prop-attributes raw 54,444 54,489 +45 (+0.1%) 🔴
prop-attributes gzip 18,772 18,802 +30 (+0.2%) 🔴
prop-attributes brotli 17,175 17,150 −25 (−0.1%) 🟢
context raw 64,541 64,077 −464 (−0.7%) 🟢
context gzip 21,759 21,634 −125 (−0.6%) 🟢
context brotli 19,714 19,599 −115 (−0.6%) 🟢
memo-context raw 132,006 127,481 −4,525 (−3.4%) 🟢
memo-context gzip 43,492 42,148 −1,344 (−3.1%) 🟢
memo-context brotli 38,795 37,686 −1,109 (−2.9%) 🟢
controlled-input raw 58,113 57,649 −464 (−0.8%) 🟢
controlled-input gzip 19,790 19,662 −128 (−0.6%) 🟢
controlled-input brotli 17,961 17,839 −122 (−0.7%) 🟢
hydrate-root raw 103,429 102,544 −885 (−0.9%) 🟢
hydrate-root gzip 34,759 34,509 −250 (−0.7%) 🟢
hydrate-root brotli 31,131 30,869 −262 (−0.8%) 🟢
deferred-hydration raw 186,698 185,815 −883 (−0.5%) 🟢
deferred-hydration gzip 61,028 60,768 −260 (−0.4%) 🟢
deferred-hydration brotli 53,315 53,252 −63 (−0.1%) 🟢
hydrate-frame raw 344,136 344,170 +34 (+0.0%) 🔴
hydrate-frame gzip 110,872 110,869 −3 (−0.0%) 🟢
hydrate-frame brotli 96,541 96,461 −80 (−0.1%) 🟢
suspense-transition raw 159,463 154,552 −4,911 (−3.1%) 🟢
suspense-transition gzip 51,767 50,247 −1,520 (−2.9%) 🟢
suspense-transition brotli 45,691 44,429 −1,262 (−2.8%) 🟢
render-errors raw 112,965 108,158 −4,807 (−4.3%) 🟢
render-errors gzip 36,718 35,274 −1,444 (−3.9%) 🟢
render-errors brotli 33,147 31,805 −1,342 (−4.0%) 🟢
component-owned-effects raw 50,442 50,491 +49 (+0.1%) 🔴
component-owned-effects gzip 17,332 17,369 +37 (+0.2%) 🔴
component-owned-effects brotli 15,835 15,847 +12 (+0.1%) 🔴
descriptor-children raw 148,738 148,883 +145 (+0.1%) 🔴
descriptor-children gzip 48,514 48,604 +90 (+0.2%) 🔴
descriptor-children brotli 43,259 43,311 +52 (+0.1%) 🔴
renderable-holes raw 91,840 89,588 −2,252 (−2.5%) 🟢
renderable-holes gzip 30,201 29,579 −622 (−2.1%) 🟢
renderable-holes brotli 27,165 26,647 −518 (−1.9%) 🟢
binding-hooks raw 59,522 59,058 −464 (−0.8%) 🟢
binding-hooks gzip 20,539 20,406 −133 (−0.6%) 🟢
binding-hooks brotli 18,708 18,553 −155 (−0.8%) 🟢
split-shell raw 395,592 395,626 +34 (+0.0%) 🔴
split-shell gzip 129,156 129,175 +19 (+0.0%) 🔴
split-shell brotli 112,733 112,763 +30 (+0.0%) 🔴
split-shell-runtime raw 323,062 323,096 +34 (+0.0%) 🔴
split-shell-runtime gzip 104,209 104,227 +18 (+0.0%) 🔴
split-shell-runtime brotli 90,222 90,261 +39 (+0.0%) 🔴
binding-base-ui-vite raw 161,483 161,643 +160 (+0.1%) 🔴
binding-base-ui-vite gzip 52,872 52,945 +73 (+0.1%) 🔴
binding-base-ui-vite brotli 47,000 47,064 +64 (+0.1%) 🔴
binding-base-ui-esbuild raw 199,888 200,063 +175 (+0.1%) 🔴
binding-base-ui-esbuild gzip 67,421 67,503 +82 (+0.1%) 🔴
binding-base-ui-esbuild brotli 59,633 59,715 +82 (+0.1%) 🔴
binding-radix-vite raw 158,833 158,987 +154 (+0.1%) 🔴
binding-radix-vite gzip 51,842 51,959 +117 (+0.2%) 🔴
binding-radix-vite brotli 46,141 46,201 +60 (+0.1%) 🔴
binding-radix-esbuild raw 197,409 197,575 +166 (+0.1%) 🔴
binding-radix-esbuild gzip 66,519 66,611 +92 (+0.1%) 🔴
binding-radix-esbuild brotli 58,844 58,974 +130 (+0.2%) 🔴
binding-mantine-hooks-vite raw 58,489 58,025 −464 (−0.8%) 🟢
binding-mantine-hooks-vite gzip 20,155 20,034 −121 (−0.6%) 🟢
binding-mantine-hooks-vite brotli 18,380 18,246 −134 (−0.7%) 🟢
binding-mantine-hooks-esbuild raw 79,539 79,559 +20 (+0.0%) 🔴
binding-mantine-hooks-esbuild gzip 28,268 28,272 +4 (+0.0%) 🔴
binding-mantine-hooks-esbuild brotli 25,529 25,531 +2 (+0.0%) 🔴
binding-apollo-client-vite raw 307,559 307,573 +14 (+0.0%) 🔴
binding-apollo-client-vite gzip 96,088 96,132 +44 (+0.0%) 🔴
binding-apollo-client-vite brotli 85,246 85,150 −96 (−0.1%) 🟢
binding-apollo-client-esbuild raw 353,923 354,094 +171 (+0.0%) 🔴
binding-apollo-client-esbuild gzip 115,093 115,163 +70 (+0.1%) 🔴
binding-apollo-client-esbuild brotli 101,547 101,614 +67 (+0.1%) 🔴
binding-usehooks-ts-vite raw 59,270 58,806 −464 (−0.8%) 🟢
binding-usehooks-ts-vite gzip 20,412 20,284 −128 (−0.6%) 🟢
binding-usehooks-ts-vite brotli 18,593 18,456 −137 (−0.7%) 🟢
binding-usehooks-ts-esbuild raw 80,313 80,333 +20 (+0.0%) 🔴
binding-usehooks-ts-esbuild gzip 28,506 28,525 +19 (+0.1%) 🔴
binding-usehooks-ts-esbuild brotli 25,739 25,770 +31 (+0.1%) 🔴

39 other measured values are unchanged.

…tors only

A function inside an array child renders as a body, which
descriptor-list-hydrate pins (#710), so every bundle with an array hole needs
the keyed list's per-item Blocks. Drop the text-only list, the CHILD_LISTS
installer and the createPortalChild compiler proof. Keep the descriptor gates
(ELEMENT_DESCRIPTORS, HOST_DESCRIPTORS) and the hole-free residue fixes. The
reachability check now asserts that a Strong app keeps no descriptor-only
declarations and no descriptor-guarded branch of child-slots.ts or deopt.ts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm trueadm changed the title perf(octane): ship renderable hole value kinds only with their creators perf(octane): drop element-descriptor dispatch from holes and lists without a factory Oct 28, 2026
…ilities

# Conflicts:
#	packages/octane/src/runtime/child-slots.ts
#	packages/octane/src/runtime/deopt.ts
#	packages/octane/src/runtime/elements.ts
#	packages/octane/src/runtime/hydration.ts
@trueadm
trueadm merged commit 68b56c6 into main Oct 28, 2026
32 checks passed
@trueadm
trueadm deleted the perf/hole-value-capabilities branch October 28, 2026 11:30
@github-actions github-actions Bot mentioned this pull request Oct 28, 2026
trueadm added a commit that referenced this pull request Oct 28, 2026
Main's new HOST_DESCRIPTORS guards (#2258) now read HOST_BODY, the
binding this branch sets exactly when the host renderer is installed.

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