Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Classification
High-risk Lynx transport performance investigation: burst backpressure, zero-command settlement, and acknowledgement completion.
Evidence
- In the expanded reverse neutral run, live main updateStorm@30k is
2148.0 ±77.8 msversus Hux21897.1 ±130.5 ms(live +13.2%). - The first live-main pacing isolation showed a real owner (
2001.8 → 1799.9 ms, -10.1%) but made ordinary commits pay an unconditionalframe-pulsecontrol path. - Demand pacing then regressed selectStorm@1k by 50%; a negotiated host-count gate removed that regression but also reduced updateStorm@30k to a wash. Pacing-only was -6.3% forward and +0.2% reverse.
- Huxpro perf(lynx): protocol slimming — derived ack handles, merged completion, empty-commit elision ([lynx-perf 6]) #14 separately proved deterministic message/empty-work reductions (common completion 3→2 messages; value-identical fold-tail commits cross 0 bytes), but its derived-handle protocol is superseded by perf: bring Lynx renderer to ReactLynx parity octanejs/octane#693 compact acknowledgements.
Evidence: live-upstream residual audit.
Hypothesis
The useful Hux behavior is not a fixed frame throttle or a row-count threshold. Main-thread apply/ack timing already supplies the information needed to recognize real backpressure. A burst policy should remain absent on idle/ordinary commits, coalesce only while measured main work exceeds the available frame budget, and settle zero-command follow-ups without a round trip. Compact ACK can carry completion without restoring Hux protocol-v2's derived-handle topology mirror.
Investigation
- Add exact counters for render ticks, non-empty/empty prepared batches, dispatched/applied/presented commits, ACK/apply duration, queue depth, frame deadline, messages, commands, and final delivered state.
- Split the experiment into rollback commits: compact-ACK merged completion; zero-command local settlement with correct version/watermark semantics; then real-signal backpressure pacing.
- Derive eligibility from observed in-flight/apply/frame pressure, never root size or benchmark identity.
- Exercise engine-delivered events after locally settled versions, adoption, attachments, calls, faults, dispose, hidden/stalled frames, and older peers.
Acceptance
- first commit after idle remains immediate and ordinary create/update/select adds zero control messages and no extra frame wait;
- updateStorm@30k improves at least 8% in both forward and reverse expanded runs;
- selectStorm@1k/10k/30k, clear, create, ordinary CRUD, startup/FCP, heap, and bundle have no >5% adverse decision cell;
- every comparison publishes presented commit count and final semantic checksum; no win may rely on an undisclosed reduction of presentation states;
- zero-command batches cross zero bytes after activation, and common compact acknowledgement completes in one reply;
- safety/fallback tests cover stalled frame sources, watermark divergence, event delivery, attachments, worklets, rejection, and disposal.
Non-goals
- Do not port Huxpro perf(lynx): frame-aligned commit pacing for the dual-thread transport #10's unconditional
frame-pulseor use the rejected 8,192-host heuristic. - Do not port perf(lynx): protocol slimming — derived ack handles, merged completion, empty-commit elision ([lynx-perf 6]) #14's derived-handle topology mirror; perf: bring Lynx renderer to ReactLynx parity octanejs/octane#693 compact ACK owns that representation.
Provenance
- An agent authored this issue (
agent-authored).
Activity
Huxpro commentedon Aug 11, 2026
Final result: falsified on fresh upstream main
I re-ran the proposal from exact upstream
9b147781c9b4ec4df053a059633978ddc0ed922aand kept the three mechanisms separable:The demand path emitted no frame request for isolated work: main only marked a normal ACK as pressured after measured host work crossed the budget, and background requested a frame only if adjacent non-empty work actually reached that gate. There was no host-count heuristic and no unconditional frame pulse.
Deterministic evidence
At 1k / 10k / 30k, create, update10th, select, updateStorm, and selectStorm retained exactly the same command and row-render counts as base. The common ACK merge reduced cross-thread storm traffic by one third:
The focused safety suite passed: 5 files / 107 tests, covering negotiation, exact message validation, rejection, stalled frames, native events across divergent watermarks, and engine-delivered taps after local settlement.
Real Lynx-for-Web, 30k rows
Same host, production bundles, medians of n=5.
Interpretation:
1969 -> 2046, +3.9%) and catastrophically paced selectStorm;1969 -> 1990(+1.1%), reverse candidate1990versus base1681(candidate +18.4%);>=8%acceptance criterion failed.This also agrees with the earlier isolation already recorded in this issue: pacing-only was -6.3% forward and +0.2% reverse, while demand/large-root gating washed out the updateStorm gain. Across unconditional, demand, host-count, and measured-pressure eligibility, no pacing formulation reached the bidirectional threshold without harming point updates.
Conclusion: do not send this upstream. The protocol message reduction is real, but on the current octanejs#693/octanejs#700 transport it is not a wall-clock bottleneck, and zero-command/pacing variants trade away select latency. Closing this optimization hypothesis as falsified rather than publishing a non-mergeable performance PR.
Huxpro commentedon Aug 11, 2026
Closing as falsified by the fresh-upstream bidirectional benchmark matrix above; no upstream PR was opened because the required acceptance threshold was not met.