mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
perf: optimize rankRelays for subset queries
- Optimized `RelayHealthManager.rankRelays` to use O(M log M) lookup for small subsets instead of O(N) filter. - Added `byRelay` Map to `_sortedCache` for O(1) access. - Fixed `NaN` bug in `buildRelayHealthConfig` when `minActiveRelayPool` is undefined. - Updated `perf/benchmark-lock-ops.mjs` to measure subset performance. - Added performance report `reports/performance/weekly-perf-report-2026-02-18.md`. - Achieved ~6.8x speedup in benchmark. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
d290bf684d
commit
6614535361
5 files changed
+2707
-7
No files matched your search
+2641
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user