Yesterday, I watched Emery Berger’s “Python performance matters” Which is you should not bother to write fast Python, just delegate all heavy lifting to optimized C/c++ and the likes. His group has a Python profiler whose main goal is to point out which parts should be delegated. Of course optimized is better but the numeric microbenchmarks in this post are mostly examples of code that is better delegated to low over…
CPython is already executed in pure C, the only difference it being a very slow, unoptimized C.
The code for simple adding of two numbers is insane. It jumps through enough hoops to make you wonder how is it even running everything else.