Skip to content

[lynx-perf-s2 2] First screen + instantiate through compiled create(): shell goes data→code on MT #18

Closed as not planned

Description

@Huxpro

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:

  1. the one-shot first-screen renderer (main-renderer.ts) — the static-skeleton portion of renderPlanNode'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);
  2. the PR perf(lynx): plan-aware wire — fold provable plan instances into instantiate-by-plan-id commands ([lynx-perf 4]) #12 instantiate path — MT expansion of instantiate(planId, slots) swaps the command stamper for compiled create.

Prod defaults ON once gates are green (fallback remains for unregistered plans).

Constraints

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

  1. added
    enhancement
    on Aug 9, 2026
  2. Huxpro commented on Aug 10, 2026

    @Huxpro
    OwnerAuthor

    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

  3. Huxpro commented on Aug 11, 2026

    @Huxpro
    OwnerAuthor

    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.

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

    agent-authoredenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions