perf(tui): precompute maintenance set, use cached sites #172
Reference in New Issue
Block a user
Delete Branch "perf/maint-map-group-queries"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
isMonitorInMaintenancereplaced O(windows × sites) nested loops with O(1) map lookup.buildMaintSetruns once perrefreshLive/handleTabData, not per call site (~10+ calls per render)groupSparkline/groupUptimeusem.sites(already on model) instead ofengine.GetAllSites()which copies the full map under a mutex per group rowNo user-facing changes — pure internal perf.
Test plan