Optimizing a ring buffer for throughput
In this article I will take a look at the classic concurrent ring buffer and how it can be optimized to increase throughput. I will show you how to significantly increase throughput from 5.5M items/s to 112M items/s, beating the Boost and Folly implementations. If you need a ready implementation with these optimizations checkout my SPSCQueue.h library.
Erik Rigtorp