Skip to content

[lynx-perf 1] Land value-semantic slot equality (implemented in #1 — rebase, review, merge) #2

Closed

Description

@Huxpro

Status: implemented in draft PR #1, unmerged (mergeable_state: dirty — needs rebase onto main). This issue tracks landing it, not building it.

What #1 fixed (the P0)

Transported commit payloads were proportional to tree size, not change size: a one-row select over 10k rows shipped ~30,000 commands / 2.4MB because shallowPropsEqual compared object-valued props by identity — every fresh ['row', false] class array and every re-created bindtap closure read as "changed" on every commit. After: 2 commands / 225 bytes.

Key pieces (all in #1): sameUniversalHostPropValue (exported single definition of prop equality; Object.is fast path + depth-2 realm-safe structural equality), listener-identity-keyed event emission, compiler lowering of static class arrays to clsx strings + literal folding into plans, hasUniversalPlainPrototype, the __OCTANE_LYNX_PROFILE__ wire profiler, and the benchmarks/lynx-table rig with deterministic gates.

Remaining work to close this issue

  • Rebase onto current main; resolve conflicts without weakening the 12 ratios.json guards
  • Un-draft, review, merge
  • Verify the acceptance criteria still hold post-rebase: select@10k = 2 cmds / ≤2048 B; update10th ∝ changed rows (1,000 cmds); selectStorm wall-clock ≈ vue-vdom parity; create/FCP unchanged
  • File the named follow-ups as comments on their owning issues: empty-commit-envelope elision (~100B per value-identical re-render) → [lynx-perf 6]; frame-aligned commit throttling → [lynx-perf 2]

Measured (from #1, 10k rows, same-host medians)

op before after vue-vdom react
select 1374ms (9.21×) 857ms (5.24×) 164 170
update10th 1493ms 1044ms 193 273
selectStorm 2579ms (1.75×) 1543ms (1.00×) 1546 2585

The remaining select gap is replay breadth (owner = whole list, no item memo) — that is [lynx-perf 3], deliberately not attempted in #1.

Activity

  1. Huxpro commented on Aug 11, 2026

    @Huxpro
    OwnerAuthor

    Live-main audit (2026-08-11): landed upstream. The change-size/proportional-wire foundation from Hux PR #1 is represented by octanejs/octane octanejs#660 and octanejs#662 (with the benchmark website in octanejs#661). The old fork landing task is no longer actionable; closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions