[Review 2026-12-02 P5 follow-up] Partially fixed perf items: DSH-008, SEC-012, SES-008, MXA-010, MXA-011 #258

Closed
opened 2026-12-03 11:17:32 -05:00 by dohertj2 · 1 comment
Owner

Split out of #256 (D10). Each was fixed in part in 68043411; the remainder:

  • DSH-008: NativeDialog update interop still runs every render — it also clears the dialog's pending flag, so skipping it would leave Escape blocked after a rejected submit. Needs the pending flag cleared another way first.
  • SEC-012: the Composite/Reset limiter skips on the auth cache-hit path were left alone because Phase 0 rewrote that limiter concurrently.
  • SES-008: readiness is checked before a sparse Time write is expanded, but there is still no frame-size bound before the fill — the frame limit isn't reachable from GatewaySession without new plumbing.
  • MXA-010: teardown now unregisters only; the watch-list update still rebuilds the standby source instead of diffing it.
  • MXA-011: the poll loop skips the STA hop when unsubscribed, but its timer still wakes; it doesn't start on subscribe.
Split out of #256 (D10). Each was fixed in part in `68043411`; the remainder: - **DSH-008:** `NativeDialog` `update` interop still runs every render — it also clears the dialog's pending flag, so skipping it would leave Escape blocked after a rejected submit. Needs the pending flag cleared another way first. - **SEC-012:** the `Composite`/`Reset` limiter skips on the auth cache-hit path were left alone because Phase 0 rewrote that limiter concurrently. - **SES-008:** readiness is checked before a sparse `Time` write is expanded, but there is still no frame-size bound before the fill — the frame limit isn't reachable from `GatewaySession` without new plumbing. - **MXA-010:** teardown now unregisters only; the watch-list update still rebuilds the standby source instead of diffing it. - **MXA-011:** the poll loop skips the STA hop when unsubscribed, but its timer still wakes; it doesn't start on subscribe.
Author
Owner

Merged to main at f6b80d02 (pushed 2026-12-03). Gateway suite 1637 passed / 0 failed (macOS); windev worker CI 847 passed / 0 failed on that SHA.

  • DSH-008: NativeDialog sends update() only on busy/generation change or a JS-reported submit/cancel (NotifyPendingAsync), so Escape still works after a rejected submit.
  • SEC-012: cache-hit path was already limiter-free after SEC-002; AuthenticateAndAuthorizeAsync is now a ValueTask, and the limiter skips composite-key/reset work when nothing is tracked (zero-alloc Check test).
  • SES-008: sparse array writes are charged against the worker's negotiated command limit before expansion → InvalidArgument (non-sparse oversize still ResourceExhausted).
  • MXA-010: reproduced first (one-alarm change rebuilt a 50-alarm standby, 102 subtags); the watch-list update now diffs the subtag standby, all-or-nothing with rollback. Unchanged alarms no longer re-emit raise/ack on a list update.
  • MXA-011: the poll loop parks on a semaphore until SubscriptionActivated; MXA-001 polling and MXA-003 shutdown bound unchanged.
Merged to `main` at `f6b80d02` (pushed 2026-12-03). Gateway suite 1637 passed / 0 failed (macOS); windev worker CI 847 passed / 0 failed on that SHA. - **DSH-008:** `NativeDialog` sends `update()` only on busy/generation change or a JS-reported submit/cancel (`NotifyPendingAsync`), so Escape still works after a rejected submit. - **SEC-012:** cache-hit path was already limiter-free after SEC-002; `AuthenticateAndAuthorizeAsync` is now a `ValueTask`, and the limiter skips composite-key/reset work when nothing is tracked (zero-alloc `Check` test). - **SES-008:** sparse array writes are charged against the worker's negotiated command limit before expansion → `InvalidArgument` (non-sparse oversize still `ResourceExhausted`). - **MXA-010:** reproduced first (one-alarm change rebuilt a 50-alarm standby, 102 subtags); the watch-list update now diffs the subtag standby, all-or-nothing with rollback. Unchanged alarms no longer re-emit raise/ack on a list update. - **MXA-011:** the poll loop parks on a semaphore until `SubscriptionActivated`; MXA-001 polling and MXA-003 shutdown bound unchanged.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#258