3 ms·
Why not just compile/JIT the python, always? I feel like I'm taking crazy pills! :) Even when you write the hot bits in C++ you still have a python interpreter
by jackmott 10y ago
Why not just compile/JIT the python, always?
I feel like I'm taking crazy pills! :)
Even when you write the hot bits in C++ you still have a python interpreter thrashing the CPU caches and using up ram.
and now you have to context switch in your head more often, and the build process is more complex, and usually there is a cost when you do the FFI.
- poikniok 10y agoIf you are talking about PyPy (I presume you are?), then two issues are that it can in some cases be slower, and also C libraries such as Numpy / SciPy are not simple to use with PyPy (I think some of Numpy has been translated, but there are many useful C libraries for Python).