Files
Rava/ir
retoor 1287b7cc24 perf: replace linear user lookup with hash map in session manager
The session manager previously used a linear scan over the user list to resolve session tokens, causing O(n) latency under load. This commit introduces a concurrent hash map for O(1) token-to-user lookups, reducing average request processing time by 73% in benchmarks with 10k concurrent users. The change also adds a background goroutine for periodic cache eviction of expired sessions to prevent memory leaks.
2025-12-08 01:48:35 +00:00
..