Highly recommend it for anyone doing scientific computing
Highly recommend it for anyone doing scientific computing
I think for Python to get decent speedups the semantics for the code being optimized needs to be highly constrained.
Optimizing full in the wild Python code is a huge huge task. Optimizing for operations over constant type arrays is much much easier.
Yes this doesn't speed up the call or the allocation rate, but start with some easy stuff or nothing will improve.
For example the "jit compile a single function" feature is gold when you need to pass a function callback pointer into a C library. This is how pygraphblas compiles Python functions into semiring operators that are then passed to the library which has no idea that the pointer is to jit compiled python function:
https://github.com/michelp/pygraphblas/blob/master/tests/tes...
from numba import jit
@jit
def jitted_fn():
https://numba.readthedocs.io/en/stable/user/jit.html