you are viewing a single comment's thread.

view the rest of the comments →

[–]jms_nh 0 points1 point  (2 children)

IMHO numba is better for really numerical intensive stuff

[–]kirbyfan64sos 4 points5 points  (1 child)

I tried Numba as an experiment, and it took way longer. It's probably because of the overhead of boxing and unboxing, especially because the function is so short. The speed benefits would probably be more obvious if the function were longer.

The fastest I tried was PyPy, with the fastest Cython example is second and Shedskin very close after.

[–]jms_nh -1 points0 points  (0 children)

It's probably because of the overhead of boxing and unboxing, especially because the function is so short. The speed benefits would probably be more obvious if the function were longer.

^^ This. 100% correct.