Skip to content

perf(lynx): retain proven keyed component rows - #362

Merged
Huxpro merged 2 commits into
new-lynxfrom
huxcx/m4-retain-keyed-component-rows-291
Sep 12, 2026
Merged

Huxpro merged 2 commits into
new-lynxfrom
huxcx/m4-retain-keyed-component-rows-291

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • reuse retained Block component-row descriptors only when compiler-certified key, item identity, index, non-selection captures, and selected state are unchanged
  • keep changed items and moved indices on the ordinary evaluation path
  • add a production-boundary regression proving copied arrays visit zero rows, one changed item visits one row, and moved indices are re-evaluated

Evidence

Ten focused Web/JIT sessions, balanced 5 AB / 5 BA with 20 reps per cell, compare this patch with the compact M4 candidate. Aggregate latency is 0.98328 (95% CI 0.96777–0.99650). BTS CPU aggregate is 0.89386 (0.88236–0.90609); update is 0.78610 and swap is 0.79013. Wire bytes are unchanged. The rows-zero Web and Native bundles each add 197 bytes.

This is an owner cut, not final acceptance: patch/baseline swap latency remains 1.01710 (0.95740–1.07638), so #291 must rerun the formal comparator matrix.

Validation

  • pnpm --filter @octanejs/lynx typecheck
  • pnpm --filter @octanejs/lynx test (57 files, 993 tests)
  • pnpm sync
  • production automatic bundle build

Progresses #291.

@github-actions github-actions Bot added the perf label Sep 12, 2026
@Huxpro
Huxpro changed the base branch from huxcx/m4-main-thread-capability-payload-291 to new-lynx September 12, 2026 04:52
@Huxpro

Huxpro commented Sep 12, 2026

Copy link
Copy Markdown
Owner Author

Temporarily reopening against new-lynx to trigger exact-head CI; the focused stacked base will be restored after the run.

@Huxpro Huxpro closed this Sep 12, 2026
@Huxpro Huxpro reopened this Sep 12, 2026
@Huxpro Huxpro closed this Sep 12, 2026
@Huxpro Huxpro reopened this Sep 12, 2026
@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-main-thread-capability-payload-291 September 12, 2026 06:42
@Huxpro Huxpro mentioned this pull request Sep 12, 2026
1 task done
@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 changed the base branch from huxcx/m4-main-thread-capability-payload-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 12:59
@Huxpro
Huxpro changed the base branch from huxcx/m3-auto-block-core-290 to new-lynx September 12, 2026 12:59
@Huxpro
Huxpro marked this pull request as draft September 12, 2026 13:01
@Huxpro
Huxpro marked this pull request as ready for review September 12, 2026 13:01
@Huxpro
Huxpro force-pushed the huxcx/m4-retain-keyed-component-rows-291 branch from 4e75767 to a4f2b0d Compare September 12, 2026 13:02
@Huxpro
Huxpro merged commit 369bb5f into new-lynx Sep 12, 2026
7 of 22 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