Skip to content

perf(lynx): add first-tree program adoption manifests - #297

Merged
Huxpro merged 2 commits into
new-lynxfrom
huxcx/perf-lynx-adoption-layout-identity-287
Sep 7, 2026
Merged

Huxpro merged 2 commits into
new-lynxfrom
huxcx/perf-lynx-adoption-layout-identity-287

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • add producer-local first-tree program manifests beside the unchanged expanded host command batch
  • negotiate the proof only for a painted first tree with an addressed program registry, and only on the first adoption batch
  • validate address, placement, host/listener layout, count, and dynamic values before retaining the existing adopt path; preserve mismatch repair and unsupported-peer fallback
  • add regression coverage for dense multi-segment runs, exact adoption, mismatch/repair, listener identity, transport/protocol compatibility, and profiling counters

This is #287 slice 1 of 2: it establishes the proof boundary but deliberately does not remove the old per-host description/comparison yet. It is not presented as a standalone speedup, and it does not close #287.

Evidence

  • exact baseline: 9df140d2c00a7c580a6aef7395ffa8eecd7f31a8
  • implementation measured: b6e3d9769b80d1c6b9cd93067f1580765bd06853
  • final evidence head: d26c25770966dc9e607a14ebd4043ce43a13a44d
  • production profile: 5/5 first screens at both 1k and 10k report one manifest run, one match, and adopt
  • uninstrumented FCP: 1k 120.4 vs 119.4 ms; 10k 787.5 vs 794.1 ms; overlapping/noisy intervals, so no performance claim
  • host boundary: candidate and baseline both issue exactly 17,113 calls at 1k and 170,113 at 10k, with two flushes
  • explicit cost: Web bundle +11,656 B; Lynx bundle +10,406 B; 10k sampling build paint-to-settled median +70.2 ms, to be repaid by slice 2
  • raw samples and complete cost ledger: docs/reports/lynx-issue287-program-manifest/README.md

Validation

  • focused Vitest: 372/372 passing across eight projects
  • profile/instrument tests: 33/33 passing
  • scoped source typecheck: passing
  • pnpm sync: passing
  • changed-file format check and git diff --check: passing
  • deliberate red/green: removing manifest emission fails the production generation assertion in development and production; restoration returns both to green

Refs #287

@github-actions github-actions Bot added the perf label Sep 7, 2026
@Huxpro
Huxpro marked this pull request as ready for review September 7, 2026 09:58
@Huxpro
Huxpro merged commit 99576f6 into new-lynx Sep 7, 2026
46 checks passed
@Huxpro
Huxpro deleted the huxcx/perf-lynx-adoption-layout-identity-287 branch September 7, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant