|
|
|
|
|
by kronos29296
3196 days ago
|
|
Nearly as fast as Numpy but never faster for jitted code while for the first run it takes longer as the jit need to generate llvm code the first time. If your calculation does not use unsupported features like classes (last time I checked they were not supported 1 year ago) and needs to be written as a loop rather than vectorized code, numba can be used to speed it up. I believe Scipyconf 2016 had a talk on numba where he goes into it in great detail. Just search it up on Youtube. Anything that is not convenient to be written as numpy arrays can be written using numba. Also it works with pure python code so your prototype can be used at scale with nothing but a decorator. |
|