Skip to content

perf(lynx): retain compact first-tree ownership - #299

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

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

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Retain a proof-covered first-tree program as one dense ownership run, promote only later-touched hosts, and retire untouched aliases as a run. Exact native A/B reduces 1k receiver apply from 4072 ms to 3 ms while first Clear also improves; cold FCP is neutral. #287 stays open for forced-GC and bundle-debt gates.

Summary

  • alias a validated first-tree LynxProgramRun in the dense host store instead of materializing 4,000 ownership records
  • lazily promote only hosts touched by updates/events and release remaining hosts at run granularity
  • compare program proofs before per-ID audits so the proof-covered run stays compact
  • add production-shaped strided-run update/clear coverage and ownership profiling
  • record exact native/Web evidence and the remaining [Lynx M2] 用可验证的布局身份减少 adoption 重放与 snapshot 工作 #287 gates

Evidence

  • native prepared.apply(): 4072 [4063–4098] ms -> 3 [3–3] ms
  • native first Clear main apply: 1012 [1008–1016] ms -> 279 [277–280] ms with equal 7,000 commands and exact state
  • native cold FCP: overlapping intervals, reported neutral
  • candidate ownership: 1 run / 4,000 hosts / no fallback in every sample
  • Web receiver cross-check: 12.5 ms -> 0.5 ms median apply
  • report: docs/reports/lynx-issue287-program-ownership/README.md

Validation

  • focused mechanism tests: 184/184
  • full Lynx Vitest: 50 files, 855/855
  • benchmark stage harness: 228/228
  • full repository typecheck: 294 workspaces
  • pnpm sync, formatting, and git diff --check

Part of #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 14:50
@Huxpro
Huxpro merged commit 6bbfd21 into new-lynx Sep 7, 2026
46 checks passed
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