Re:Python startup time: milliseconds matter
by rrcaptain on Thursday May 03, 2018 @12:50AM
(#16983431)
Not all python programs are compatible with PyPy though. Nor do they get much of a performance boost by switching. Pandas and NumPy for example didn't work on PyPy until less than a year ago. And a good chunk of Python codebases are going to use one of those at some point.
[ Parent
| on HN ]
Re:Python startup time: milliseconds matter
by civility on Thursday May 03, 2018 @01:02AM
(#16983461)
> Not all python programs are compatible with PyPy though.
I'm not sure how this is relevant to my reply... I didn't say PyPy was a replacement for Python. I said PyPy, Lua, and JavaScript are existence proofs that dynamic "hash table" languages don't have to be slow. Therefore, CPython must be slow for some other reason.
Re:Python startup time: milliseconds matter
by mratsim on Thursday May 03, 2018 @04:29AM
(#16984245)
Pypy can't accelerate the Pandas/Numpy part anyway, the computationally intensive code in Numpy and Pandas is coded in C, C++ or Fortran.
Though there are a lot of if isInstance(Foo, bar) that could be avoided in a statically typed language.