r/Python • • Jul 16 '18

Why is Python so slow?

https://medium.com/@anthonypjshaw/why-is-python-so-slow-e5074b6fe55b
11 Upvotes

51 comments sorted by

View all comments

12

u/lambdaq django n' shit Jul 16 '18

tl;dr

  1. GIL is slow because obviously everyone runs Django using native threading.

  2. no JIT/AOT and it's a must have for fast languages

  3. Python has no static type so guessing the type during runtime is incredibly hard.

I think CPython is slow solely because it's never been a top priority in PSF.

9

u/[deleted] Jul 16 '18

4. if you need to go fast there are better suited languages.

edit: welp, should've said 4.,

6

u/lambdaq django n' shit Jul 16 '18

or use modules written in C.

4

u/Sukrim Jul 16 '18

Or pypy