Optimizing a ring buffer for throughput (2021)
There is a cool trick using virtual memory allowing fast and gapless ring buffers.<p>See this page (about half way down) <a href="https://ruby0x1.github.io/machinery_blog_archive/post/virtual-memory-tricks/index.html" rel="nofollow noreferrer">https://ruby0x1.github.io/machinery_blog_archive/post/virtua...</a>