Trust your compiler: Modern C++
categorica.ioC++ programmers absorb a lot of performance wisdom by osmosis: fast inverse square root, XOR swap, hand-unrolled loops, Duff’s device, exceptions are slow, virtual calls are slow, division is slow, lookup tables often beat maths. Even if once true, hardware, … Read more