3 comments

[ 1.7 ms ] story [ 21.6 ms ] thread
Looking at this step:

-from math import sin, cos, acos

+from libc.math cimport sin, cos, acos

What happens if the C math functions and the Python math functions don't take the same arguments/kinds of arguments?

On my system, PyPy is 4x faster than the fastest Cython version given.