Files
ragnar/src
retoor 57ab3cd0e9 perf: replace linear search with binary search in user lookup handler
The user lookup endpoint previously used a linear scan over the user list,
which degraded performance under high concurrency. This change replaces
the search algorithm with a binary search on the sorted user ID array,
reducing average lookup time from O(n) to O(log n). The user list is
maintained in sorted order via insertion sort on new user registration.
2025-01-09 23:12:24 +00:00
..