3 ms·
Yeah but why don’t we have both? (Actually I think 99% of micro optimisations are harmful, it’s the higher level algorithmic optimisation that gives the best g
by taneq 4y ago
Yeah but why don’t we have both?
(Actually I think 99% of micro optimisations are harmful, it’s the higher level algorithmic optimisation that gives the best gains.)
- kaba0 4y agoDo you mean microopromizations done by programmers or the compiler? Because if the former, I agree (especially regarding old “wisdoms” like left shifting instead of multiplying by two, when that’s the first thing any compiler will do. But it is true of even more “complex” tricks, if anything they hurt performance).
- anonymoushn 4y agoWhy is simdjson faster than json parsers that do not contain any simd intrinsics if using pshufb and movemask for string parsing hurts performance?
- taneq 4y agoThe former, absolutely. The compiler can do whatever the heck it wants as long as the result is the same.