Files
neon/proxy/src
Conrad Ludgate c8316b7a3f simplify endpoint limiter (#6122)
## Problem

1. Using chrono for durations only is wasteful
2. The arc/mutex was not being utilised
3. Locking every shard in the dashmap every GC could cause latency
spikes
4. More buckets

## Summary of changes

1. Use `Instant` instead of `NaiveTime`.
2. Remove the `Arc<Mutex<_>>` wrapper, utilising that dashmap entry
returns mut access
3. Clear only a random shard, update gc interval accordingly
4. Multiple buckets can be checked before allowing access

When I benchmarked the check function, it took on average 811ns when
multithreaded over the course of 10 million checks.
2023-12-13 13:53:23 +00:00
..
2023-10-25 15:43:03 +01:00
2023-11-27 21:45:15 +00:00
2023-12-13 07:03:21 +02:00
2023-11-30 16:33:54 +00:00
2023-11-06 17:44:44 +00:00
2023-08-31 14:30:25 +03:00
2023-12-13 13:53:23 +00:00
2023-11-27 21:45:15 +00:00
2022-07-04 23:46:37 +03:00