Hi all,
I recently wrote the same script in Numba and C+CFFI. To my suprise Numba was five times faster than the C+CFFI implementation, and it seems like I’m not the only person to have encountered this phenomenon*. I assume the reason for the speed up is because Numba is highly optimised for Numpy and that I’m not very good at writing optimised C code.
Is it possible to output the C code from the jitted Numba function? I would love to compare this to my own C code to see where my failures are.
Thanks so much!
*unfortunately discourse isn’t letting me link to a post with a similar query to mine. For those interested, search on Google “numba vs c+cffi”.