↓Skip to main content

PeriPragmaton

Notes on performance: the places where the hardware, the compiler or the runtime stops behaving like the model most of us carry in our heads, and what that costs. Each post comes with the code and the benchmark that produced its numbers, in darfire/bloggy-code.

Recent

Quirks of a CPU: Cache Aliasing

·11 mins
Summing a power-of-two-sized matrix column by column is eight times slower than the same loop with one extra element per row. Why cache sets make some addresses collide, and how to spot it.