Review 2026-12-02 Phase 5: Remaining performance items #256

Closed
opened 2026-12-02 16:07:39 -05:00 by dohertj2 · 1 comment
Owner

Phase 5 — Remaining performance (p2/p3)

# Finding(s) Change
5.1 DSH-003 The snapshot tick reads cached health results; health checks run on their own cadence.
5.2 DSH-004, DSH-008, DSH-010 Coalesce session-details renders (for example 250 ms) and key the rows. NativeDialog interop runs only when the open state changes. The Alarms page re-projects only on change.
5.3 DSH-009 AlarmsHubPublisher skips work when no hub clients are connected.
5.4 MXA-008, MXA-011 wnwrap poll skips re-parse when the XML is unchanged (compare hash or length). The alarm poll loop does not wake the STA when there is no alarm subscription.
5.5 MXA-009 Completion waits use the intended 50 ms tick and a pending-set, not a full rescan.
5.6 MXA-010 Unregister without per-item teardown when the whole server handle goes. Watch-list updates diff the standby instead of rebuilding it.
5.7 WIP-010 Move console logging out of the dispatcher gate.
5.8 WRK-010, WRK-007 Reuse the computed envelope size for the CommandTooLarge check. Pre-reply failures increment a terminal counter.
5.9 SEC-012, SEC-014 Trim auth cache-hit allocations (stackalloc hash buffer, cached identity). Audit sweep uses an indexed timestamp predicate and runs off the startup path.
5.10 SES-006, SES-008 Reject (or clamp, with a gap sentinel) a resume cursor ahead of the stream. Size-check sparse Time array writes before allocating.

Verify: targeted tests per item; for the dashboard items, a manual run with the macOS dashboard rig.


Source: code-reviews/2026-12-02-perf-bugs/README.md and code-reviews/2026-12-02-perf-bugs/PLAN.md (commit f200bda6 on local branch docs/review-2026-12-02-perf-bugs, not yet pushed). Reviewed at 54367e74.

## Phase 5 — Remaining performance (p2/p3) | # | Finding(s) | Change | |---|---|---| | 5.1 | DSH-003 | The snapshot tick reads cached health results; health checks run on their own cadence. | | 5.2 | DSH-004, DSH-008, DSH-010 | Coalesce session-details renders (for example 250 ms) and key the rows. `NativeDialog` interop runs only when the open state changes. The Alarms page re-projects only on change. | | 5.3 | DSH-009 | `AlarmsHubPublisher` skips work when no hub clients are connected. | | 5.4 | MXA-008, MXA-011 | wnwrap poll skips re-parse when the XML is unchanged (compare hash or length). The alarm poll loop does not wake the STA when there is no alarm subscription. | | 5.5 | MXA-009 | Completion waits use the intended 50 ms tick and a pending-set, not a full rescan. | | 5.6 | MXA-010 | Unregister without per-item teardown when the whole server handle goes. Watch-list updates diff the standby instead of rebuilding it. | | 5.7 | WIP-010 | Move console logging out of the dispatcher gate. | | 5.8 | WRK-010, WRK-007 | Reuse the computed envelope size for the `CommandTooLarge` check. Pre-reply failures increment a terminal counter. | | 5.9 | SEC-012, SEC-014 | Trim auth cache-hit allocations (stackalloc hash buffer, cached identity). Audit sweep uses an indexed timestamp predicate and runs off the startup path. | | 5.10 | SES-006, SES-008 | Reject (or clamp, with a gap sentinel) a resume cursor ahead of the stream. Size-check sparse `Time` array writes before allocating. | **Verify:** targeted tests per item; for the dashboard items, a manual run with the macOS dashboard rig. --- Source: `code-reviews/2026-12-02-perf-bugs/README.md` and `code-reviews/2026-12-02-perf-bugs/PLAN.md` (commit `f200bda6` on local branch `docs/review-2026-12-02-perf-bugs`, not yet pushed). Reviewed at `54367e74`.
Author
Owner

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

All rows done; the partially fixed remainder (DSH-008, SEC-012, SES-008, MXA-010, MXA-011) is split out to #258. SES-006: a resume cursor ahead of the stream is rejected with InvalidArgument (docs/Sessions.md).

Merged to `main` at `68043411` (pushed 2026-12-03). Gateway suite 1610 passed / 0 failed (macOS); windev worker CI 836 passed / 0 failed on that SHA. All rows done; the partially fixed remainder (DSH-008, SEC-012, SES-008, MXA-010, MXA-011) is split out to #258. SES-006: a resume cursor ahead of the stream is rejected with `InvalidArgument` (`docs/Sessions.md`).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#256