MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/8z7z5r/why_is_python_so_slow/e2h4nrv/?context=3
r/Python • u/Anthonypjshaw • Jul 16 '18
51 comments sorted by
View all comments
12
tl;dr
GIL is slow because obviously everyone runs Django using native threading.
no JIT/AOT and it's a must have for fast languages
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.
1 u/[deleted] Jul 16 '18 Can somebody explain the technical reasoning behind #1 above for somebody trying to understand what GIL has to do with Django and the native threading comment? (And are learning Python?) 1 u/[deleted] Jul 16 '18 He mis-spoke. He meant processes not threads.I think he's saying that using multiple processes for web is common, but other domains don't do it.
1
Can somebody explain the technical reasoning behind #1 above for somebody trying to understand what GIL has to do with Django and the native threading comment? (And are learning Python?)
1 u/[deleted] Jul 16 '18 He mis-spoke. He meant processes not threads.I think he's saying that using multiple processes for web is common, but other domains don't do it.
He mis-spoke. He meant processes not threads.
I think he's saying that using multiple processes for web is common, but other domains don't do it.
12
u/lambdaq django n' shit Jul 16 '18
tl;dr
GIL is slow because obviously everyone runs Django using native threading.
no JIT/AOT and it's a must have for fast languages
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.