Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Part of the [lynx-perf-s2] code-staged roadmap (sequel to #9). Depends on #17 (codegen) and #16 (segment table sets the honest expectation).
Scope (one PR)
Both MT consumers of plans call the registered create(planId) when present, interpretive fallback otherwise:
- the one-shot first-screen renderer (
main-renderer.ts) — the static-skeleton portion ofrenderPlanNode's work goes through compiled create; components, control-flow directives, slots, Suspense, context, adoption/repair stay interpretive (RL-Snapshot-style hybrid — this is the boundary PR perf(lynx): receiver diet — lazy worklet bridge, per-slice gzip gates ([lynx-perf 7]) #15's unification assessment mapped out: the live-renderer parts are not staged, only the skeleton is); - the PR perf(lynx): plan-aware wire — fold provable plan instances into instantiate-by-plan-id commands ([lynx-perf 4]) #12
instantiatepath — MT expansion ofinstantiate(planId, slots)swaps the command stamper for compiled create.
Prod defaults ON once gates are green (fallback remains for unregistered plans).
Constraints
- Adoption/repair unchanged: code-created trees must yield the exact handle topology BG adoption expects. The [lynx-perf-s2 1] Compiler MT emission target: per-plan create() + slot setters, planId registry, fallback-safe (flagged) #17 differential suite runs against both consumers here.
- First-screen semantics are the concentrated risk (perf(lynx): receiver diet — lazy worklet bridge, per-slice gzip gates ([lynx-perf 7]) #15's assessment) — the hybrid boundary must not change ordering, ref timing, or event-replay windows. Existing first-screen/adoption/hydration-analog suites are the gate, plus the dev compiled-vs-interpreted fail-stop.
- No wire change in this PR (wire already speaks planId since perf(lynx): plan-aware wire — fold provable plan instances into instantiate-by-plan-id commands ([lynx-perf 4]) #12).
Acceptance / gates
- Deterministic: prod rig-app first screen performs 0 interpretive plan-skeleton walks for compiled plans (counter, gate-pinned); adoption parity suites green; element trees byte-identical to interpretive baseline.
- Wall-clock, honest per [lynx-perf-s2 0] Stage decomposition: attribute FCP and create before cutting (go/no-go instrument) #16's protocol: FCP A/B on quiet host with the segment table re-run — expectation is segment (b) ≈ eliminated for compiled plans; report the share actually removed, no band-chasing. create@10k re-measured same-run vs vdom/react references.
- Red-check: force-fail registry lookup ⇒ fallback serves identical output (and dev reports); break create() ordering ⇒ adoption suite goes red.
Activity
Huxpro commentedon Aug 10, 2026
Closed by #16's measurement gate (PR #22, SG1 quiet host): plan interpretation is 5.4% of attributed FCP and instantiate expansion is 2.5% of create — neither clears the 10% direct-share gate, so the data→code shell swap has at most ~125ms of FCP to win on a 2.3s frame. The mass is in PAPI creation (21.7%) and flush/layout residual (72.5%). Tables and stop rationale in #21's gate-outcome section. Reopen only if a new measurement re-clears the gate.
Generated by Claude Code
Huxpro commentedon Aug 11, 2026
Live-main audit (2026-08-11): this remains correctly closed. octanejs#700 now activates template programs after first-screen adoption and owns the create path this issue anticipated; the exact stopped S2 implementation is superseded.