Optimizing a Ring Buffer for Throughput
rigtorp.se