Performance
2 articles

performancecpu-cachememory5 min
Cache Lines and Memory Layout
How CPU caches work, why padding exists, and how struct layout changes throughput.
performancecpubranch-prediction4 min
Branch Prediction and Sorted Data
How your CPU predicts branches, what a misprediction costs, and why sorted arrays often process faster than random ones.