feat(runner): tune minimiser hot path buffers#194
Conversation
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 59 minutes and 22 seconds.Comment |
Additional context from comment filesThese notes were split from the local markdown comment files and attached here because they describe this PR's change. Change 2: raise the input-channel buffer (32 → 1024)File: Before: edm.inputChannel = make(chan []byte, 32)After: edm.inputChannel = make(chan []byte, 1024)Why this was a bottleneck
A 32-deep buffer drains in **~ 160 µs** at 200 K qps. That is well below The result is a system that works cleanly at a steady state but is What we changedThe buffer is now 1024 frames. At an average frame size below 1 KiB, TradeoffA larger buffer absorbs more upstream jitter, which is what we want. Expected payoffEliminates a class of jitter-induced stalls. Smooths out throughput Change 3: per-worker scratch buffer for
|
Summary
Tests