3 ms·
Optimizing for modern CPUs means optimizing for predictable memory accesses and program flow. Minimizing memory usage helps a lot, too. Unfortunately this is p
by 0x000xca0xfe 4y ago
Optimizing for modern CPUs means optimizing for predictable memory accesses and program flow. Minimizing memory usage helps a lot, too.
Unfortunately this is pretty counterintuitive and most programming languages do not make it easy. And if you optimize for size you almost get laughed at.
- usefulcat 4y ago> And if you optimize for size you almost get laughed at. Only by people who don't know much about optimization, which is the real problem. Memory caches are obviously of fixed size and relatively small.