2 ms·
> In practice, the "hot loops" of Python are in c/c++/fortran/cython/numba/ This is a vast overgeneralization. You'll find these optimized loops in optimized p
by jstimpfle 4y ago
> In practice, the "hot loops" of Python are in c/c++/fortran/cython/numba/
This is a vast overgeneralization. You'll find these optimized loops in optimized packages, done by engineers with enough experience. In practice, there is a lot of slow running code. And that includes "optimized" code that runs on numpy or similar but simply doesn't lend itself very well to being optimized in that way.
Python is convenient for short scripts, but very slow to execute.