SIGN IN SIGN UP

Optimize throttle middleware by avoiding unnecessary timer creation (#1011)

- Only create time.NewTimer() when actually needed to wait
- Reduces allocations from 7 to 4 and memory usage by ~54%
- Improves performance by ~50% in high-throughput scenarios
V
Vasily Tsybenko committed
cf537d4016bf258bd9bdbe0dccbfdeeac364423f
Parent: 9040e95
Committed by GitHub <noreply@github.com> on 8/26/2025, 11:23:50 AM