Optimizing a lock-free ring buffer | Hacker News Reader