Skip to content

perf(lynx): close adoption retention and bundle debt - #300

Merged
Huxpro merged 5 commits into
new-lynxfrom
huxcx/perf-lynx-adoption-retention-size-287
Sep 7, 2026
Merged

Huxpro merged 5 commits into
new-lynxfrom
huxcx/perf-lynx-adoption-retention-size-287

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Close #287's remaining ownership-retention and bundle-debt gates. Forced-GC lifecycle evidence retires the 4,000-host adopted run to zero live ownership, production bundles are now smaller than the slice-1 baseline, and exact native startup/Clear validation preserves the compact receiver result.

Summary

  • track live first-tree ownership runs/hosts and prove sparse promotion plus teardown retirement
  • add a forced-GC benchmark lifecycle covering fresh page, hand-over, sparse update, unmount, and close
  • inject a build-time Lynx diagnostic-mode constant in every Rspeedy-owned graph
  • replace production error prose with stable OL001–OL483 identifiers while retaining full development diagnostics
  • preserve diagnostic source anchors only in production-minified profile builds and attribute the transport encoder explicitly
  • keep native benchmark teardown and instrumentation behind profile-only globals
  • publish exact-head retention, bundle, startup, and first-Clear evidence

Evidence

  • forced-GC ownership: 1 run / 4,000 hosts after hand-over, 1 / 3,999 after sparse promotion, 0 / 0 after unmount and close
  • forced-GC heap: 7.99 MiB hand-over, 8.01 MiB sparse update, 7.93 MiB unmount, 4.68 MiB close (n=5)
  • Web shipping bundle: 582,545 B slice-1 baseline -> 579,114 B (-3,431 B, -0.59%)
  • Lynx shipping bundle: 564,273 B slice-1 baseline -> 560,035 B (-4,238 B, -0.75%)
  • native startup apply: 3 [3–3] ms; 1 run / 4,000 hosts; no fallback
  • native first Clear apply: 290 [287–291] ms; exactly 7,000 commands; exact 1,000 -> 0 state; 0 / 0 live ownership
  • same-window causal expanded-ownership control remains the slice-3 result: 4,072 ms startup apply and 1,012 ms Clear apply
  • CI-equivalent main-thread profile smoke: 31.5% unmatched median, below the unchanged 40% ceiling
  • report: docs/reports/lynx-issue287-retention-size/README.md

Validation

  • full Lynx Vitest: 50 files, 856/856
  • full Rspeedy plugin Vitest: 9 files, 74/74
  • benchmark stage harness: 229/229
  • full repository typecheck, including workspace packages, examples, and benchmarks
  • pnpm sync, formatting, stable diagnostic-code completeness, and git diff --check

Provenance

  • An agent produced this diff (agent-authored)

Closes #287.

@Huxpro
Huxpro marked this pull request as ready for review September 7, 2026 16:16
@Huxpro
Huxpro merged commit 168eaca into new-lynx Sep 7, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant