From Correct to Fast: Optimizing Atomics with Cache Line Alignment

Atomics are safe, but not always fast — especially when multiple threads fight over the same cache line.