Skip to content

perf(lynx): compact first-tree program adoption - #298

Merged
Huxpro merged 9 commits into
new-lynxfrom
huxcx/perf-lynx-adoption-program-compact-287
Sep 7, 2026
Merged

Huxpro merged 9 commits into
new-lynxfrom
huxcx/perf-lynx-adoption-program-compact-287

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace eligible expanded first-tree program command streams with one proof-bearing addressed run while retaining the expanded in-memory batch for repair and compatibility
  • adopt the proved painted run without row-scale comparison, selector/event/main-thread-prop reinstall, or temporary active-node indexing
  • add ordered ContextProxy framing below the observed Android envelope and a compact acknowledgement that reconstructs the complete host ledger in the background realm
  • preserve contiguous, strided, worklet, mismatch/repair, legacy-peer, buffered-event, update, unmount, and close semantics; correct sparse host IDs and framed background lifecycle delivery found during self-review
  • add bounded native attribution plus checked-in Web and Android evidence

This is #287 slice 2. It materially deletes adoption work but does not close #287: bundle debt, the remaining 3.78 s native ownership transfer, and a forced-GC retention series remain explicit follow-up gates.

Evidence

  • merged slice-1 baseline: 99576f6ea7196d79a8f71e0c93e002e986584267
  • exact measured product: 8d834fbcbb0bd7095e85e0330dc256f569e345e2
  • exact native mechanism control: ae58d5ab638f3e203a75fa0441087931cbd5773c (candidate plus one Lynx-only early return retaining expanded commands)
  • Web shipping FCP, 5 fresh pages/cell AB/BA: 1k 142.6 vs 145.1 ms (1.018x); 10k 843.7 vs 821.6 ms (0.974x); overlapping intervals, therefore no FCP claim
  • Web 10k owner attribution: adoption main frames 437.9 -> 135.0 ms; prepare 238.2 -> 99.4 ms; apply 93.8 -> 38.0 ms; paint-to-settled 1047.9 -> 477.1 ms
  • Android 1k, 5 cold launches/cell AB/BA: commands 10,068 -> 69; comparisons 4,028 -> 28; ACK+complete 973,504 -> 203 B; main apply 4570 -> 3778 ms; FCP and second-frame settlement neutral
  • first native Clear remains exact 1000 -> 0 rows with identical 7,000 commands and 163,613-byte ACK; tap-to-second-frame 2308 vs 2325 ms and main apply 961 vs 960 ms
  • production bundle ledger: Web +12,008 B (+2.06%), Lynx +11,504 B (+2.04%) versus slice 1; this debt is reported, not hidden
  • full protocol, raw samples, provenance, and remaining gates: docs/reports/lynx-issue287-program-compaction/README.md

Validation

  • full Lynx Vitest: 50 files, 854/854 passing
  • benchmark stage harness: 228/228 passing
  • full repository pnpm typecheck: passing
  • pnpm sync: passing at current head
  • changed-file formatting and git diff --check: passing
  • native records: 10/10 accepted startup samples and 10/10 accepted first-Clear samples, zero invalid attempts, zero errors, DevTool disabled, thermal status 0

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 13:31
@Huxpro
Huxpro merged commit ccc61b0 into new-lynx Sep 7, 2026
44 of 46 checks passed
@Huxpro
Huxpro deleted the huxcx/perf-lynx-adoption-program-compact-287 branch September 7, 2026 13:43
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