mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-04-27 07:55:13 +00:00
7abd05ff7f
Remove the spTxIndex map (map[string][]*StoreTx) that stored per-subpath transmission pointer slices. This was the largest single heap consumer during startup on databases with many unique subpaths. Replace the only read site (GetSubpathDetail) with an O(packets) scan that matches subpaths on the fly. This is acceptable because the endpoint is only called on drill-down, not listing. Remove all write sites (addTxToSubpathIndexFull, removeTxFromSubpathIndexFull) and collapse them back into the simpler addTxToSubpathIndex/removeTxFromSubpathIndex functions that only maintain counts.