[Cython] __next__ | not being able to use cpdef

Jelle Feringa jelleferinga at gmail.com
Wed Dec 10 11:41:44 CET 2008


> I'd be worried that the cost of two Python function calls
> for every iteration would swamp any gains made from doing
> the looping part in Cython.

Well, the do_curvature call is a call to a SWIG wrapped module.
The call is really quick.
What's slowing down is the python for loops, not the call.




More information about the Cython-dev mailing list