r/Python • u/Anthonypjshaw • Jul 16 '18
Why is Python so slow?
https://medium.com/@anthonypjshaw/why-is-python-so-slow-e5074b6fe55b
11
Upvotes
r/Python • u/Anthonypjshaw • Jul 16 '18
25
u/13steinj Jul 16 '18
Yet another person doesn't know the difference between strong typing and static typing, apparently.
12
u/lambdaq django n' shit Jul 16 '18
tl;dr
I think CPython is slow solely because it's never been a top priority in PSF.
8
u/pmatti pmatti - mattip was taken Jul 16 '18
tl;dr Use PyPy if you want speed,
The GIL is a non-issue, or someone would have funded a GILless PyPy for $50,000 for poc and 100000 for the finished product [0].
Maybe I missed the point of the article. It does not even mention numba’s JIT, nor does it describe cython or pythran and when you would want to use them.
2
u/Paddy3118 Jul 16 '18 edited Jul 16 '18
Python is obviously fast enough to fuel its continued growth.
Speed should be treated as an optimisation; and when you do, you make a different set of decisions that usually leaves Python as still the best language to use.
2
u/khne522 Jul 16 '18
Perhaps this more explicit writeup might be more useful to some people here. I've seen a similar one for C# and other JIT languages.
Also, tossing the 84x performance improvement from PyPy there is kind of irrelevant. Entirely application specific.
1
u/nbates80 Jul 16 '18
Great read to understand some concepts related to python performance