2 ms·
Optimizing/squeezing performance out of Python is a rabbit hole: https://www.ibm.com/developerworks/community/blogs/jfp/entry/A_Comparison_Of_C_Julia_Python_Nu
by gshulegaard 9y ago
Optimizing/squeezing performance out of Python is a rabbit hole:
https://www.ibm.com/developerworks/community/blogs/jfp/entry/A_Comparison_Of_C_Julia_Python_Numba_Cython_Scipy_and_BLAS_on_LU_Factorization?lang=en https://www.ibm.com/developerworks/community/blogs/jfp/entry...
I would speculate using numba or Cython would yield further performance gains over PyPy...but that's mostly just based on anecdotal comparisons:
https://cardinalpeak.com/blog/faster-python-with-cython-and-pypy-part-2/ https://cardinalpeak.com/blog/faster-python-with-cython-and-...
I just think it is a bit dishonest to try and make a claim as pointed as this article's in 2017 by stopping at simply running an un-optimized CPython script with PyPy.
- throwaway7645 9y agoI think they're just giving you bounds on what to expect and not selling anything. The D optimizations looked a lot easier (write it slightly different) than mucking with Cython or Numba. Simply running through PyPy is another thing all together.
- gshulegaard 9y agoI don't know, a lot of benefit can be had from Cython by just declaring types and flagging for compilation: http://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html http://cython.readthedocs.io/en/latest/src/tutorial/cython_t... http://cython.readthedocs.io/en/latest/src/quickstart/cythonize.html http://cython.readthedocs.io/en/latest/src/quickstart/cython... But that is just my opinion.