Hacker News new | ask | show | jobs
by MostAwesomeDude 4839 days ago
Numba can't deal with PyPy at the moment, I think. If you're doing lots of Numpy, then see whether PyPy's numpy support works for you, as it will be fastest. If not, then CPython and Numba might be what you want.

Also, you might not need Numpy at all. If you only adopted Numpy for its speed, and not its semantics, maybe you want to move back to simpler pure Python code.

Anecdotally, I moved Bravo from Numpy to array.array when becoming PyPy-compatible, and got speedups of around 60x in my math-intensive sections.

1 comments

Many people pay for NumPy's creation of temporaries and such. If you have a lot of Numpy code and use a lot of long expressions, it's worth looking at NumExpr, which can give greatly improved performance because it eliminates temporaries and does multicore parallelization.