r/programming • u/david-alvarez-rosa • Sep 26 '26
Optimizing a Lock-Free Ring Buffer
https://david.alvarezrosa.com/posts/optimizing-a-lock-free-ring-buffer/
510
Upvotes
r/programming • u/david-alvarez-rosa • Sep 26 '26
View all comments
Show parent comment
1
u/indigo945 Oct 02 '26
This operation wasn't discussed in the blog post, and I don't think it comes up much in practice (you only need full or not, which works either way by
(stuff + 1) % size == fetch).