Re:How to Make Python Run as Fast as Julia
by vvanders on Wednesday December 16, 2015 @11:23AM
(#10745250)
I would argue that data layout is even more important the the data structure you use(see radix sort) which is also something the compiler can't control.
I pretty strongly disagree that with the meta-parent that it's the "compiler's job to speed up your code". It just doesn't have enough context to be able to do it effectively. I would actually prefer a predictable compiler to one that tries to do all sorts of magic tricks that can be perturbed by seemingly trivial code changes.
But in general, unrolling loops, caching (some) results, and eliding redundant code rightfully is the compiler's job. That's a different kind of speedup.