Skip to content

perf(lynx): stage retained row indices - #363

Merged
Huxpro merged 3 commits into
new-lynxfrom
huxcx/m4-stage-row-indices-291
Sep 12, 2026
Merged

Huxpro merged 3 commits into
new-lynxfrom
huxcx/m4-stage-row-indices-291

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • reuse an unchanged retained keyed-row record directly during structural render construction
  • publish each survivor's new list index only after the frame commits, using the next Map's insertion order
  • preserve the prior accepted indices when a structural frame is rejected, with a regression that follows rejection by sparse selection

Evidence

Ten independent Web/JIT sessions, balanced 5 AB / 5 BA with 20 remove@1k repetitions per arm, compare this patch with #362. Remove latency is 0.95316 (95% CI 0.92134–0.98813). BTS CPU is 0.64576 (0.63194–0.66102); MTS CPU is non-inferior at 0.99923 (0.96494–1.03996). BTS→MTS bytes are identical, every 10k GC snapshot upper bound is below 1.003, and rows-zero Web/Native bundles add 13 bytes each.

The raw profiler used ten runs per arm and measured BTS CPU falling from 7.51ms to 4.69ms with no MTS increase. Evidence is pinned in Huxpro/lynx-js-framework-benchmark@5240e8d.

This is an owner cut, not final #291 acceptance; the formal latest-upstream/ReactLynx/Vue matrices must be rebuilt on the eventual merged head.

Validation

  • pnpm --filter @octanejs/lynx typecheck
  • pnpm --filter @octanejs/lynx test -- block-component.test.ts (57 files, 993 tests)
  • pnpm sync
  • production automatic-core build

Progresses #291.

@github-actions github-actions Bot added the perf label Sep 12, 2026
@Huxpro
Huxpro changed the base branch from huxcx/m4-retain-keyed-component-rows-291 to new-lynx September 12, 2026 06:42
@Huxpro Huxpro closed this Sep 12, 2026
@Huxpro Huxpro reopened this Sep 12, 2026
@Huxpro
Huxpro changed the base branch from new-lynx to huxcx/m4-retain-keyed-component-rows-291 September 12, 2026 07:14
@Huxpro
Huxpro force-pushed the huxcx/m4-retain-keyed-component-rows-291 branch from c739d4e to 4e75767 Compare September 12, 2026 12:29
@Huxpro
Huxpro force-pushed the huxcx/m4-stage-row-indices-291 branch from 1234b40 to 2df2585 Compare September 12, 2026 12:29
@Huxpro
Huxpro changed the base branch from huxcx/m4-retain-keyed-component-rows-291 to new-lynx September 12, 2026 12:41
@Huxpro
Huxpro marked this pull request as draft September 12, 2026 12:42
@Huxpro
Huxpro marked this pull request as ready for review September 12, 2026 12:42
@Huxpro
Huxpro changed the base branch from new-lynx to huxcx/m3-auto-block-core-290 September 12, 2026 13:00
@Huxpro
Huxpro changed the base branch from huxcx/m3-auto-block-core-290 to new-lynx September 12, 2026 13:00
@Huxpro
Huxpro force-pushed the huxcx/m4-stage-row-indices-291 branch from 2df2585 to f0d9542 Compare September 12, 2026 13:02
@Huxpro
Huxpro merged commit f853a25 into new-lynx Sep 12, 2026
26 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