r/cpp • u/david-alvarez-rosa • Mar 24 '26
Optimizing a Lock-Free Ring Buffer
https://david.alvarezrosa.com/posts/optimizing-a-lock-free-ring-buffer/
104
Upvotes
r/cpp • u/david-alvarez-rosa • Mar 24 '26
View all comments
Show parent comment
4
u/Big_Target_1405 Mar 25 '26 edited Mar 25 '26
You can actually exceed the performance (particularly latency and jitter) of the rigtorp queue without caching head/tail. Caching head/tail optimises for the wrong thing (non-empty queues i.e. throughout)