mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 18:45:53 +00:00
d18fcf55ad
The derived-parent recompute in buildChildCounts may hit the agent fallback scan once per guest, and that scan walked every resource with per-entry string checks, an O(n^2) pass per registry ingest. The pass now buckets agent resources by node name up front and the fallback walks only the matching bucket. Selection is order-independent (best score with smallest-ID tie-break) and scores read live through shared pointers, so results are unchanged; callers outside the pass keep the full scan. Contract-Neutral: performance-only scan bucketing in the parent recompute pass, selection semantics unchanged