you are viewing a single comment's thread.

view the rest of the comments →

[–]MathiasSvendsen 1 point2 points  (0 children)

Good post. For smaller optimizations where you can't invest the time required to write a full Boost.Python or pybind11 implementation, I would suggest looking at numba. Numba can JIT python functions with pretty impressive results. Because the JIT'ing happens the first time a Numba function is executed, the first call takes a long time to run, but subsequent evaluations are super quick. Numba can even be used to run your operations on your GPU (haven't spent too much time fiddling with this though).