Python is easy to write and pretty clean to read but trades off some speed. If you need to go faster and don't want to rewrite everythin you can do several things:
use Cython which uses C
Numba which uses a JIT compiler
You can use apache thrift or libraries to send stuff to run in other languages.
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.