[Cython] __next__ | not being able to use cpdef
Jelle Feringa
jelleferinga at gmail.com
Wed Dec 10 12:42:53 CET 2008
Hi Dag Severre,
Thanks, I will read through the "Comments on example code" thread,
sorry I missed out on that.
Thanks also for the example you gave.
I did not understood why its necessary to wrap the do_curvature call
in Cython though: the call is close enough to C++ execution speed.
The API I'm working with is *huge*, in C++ and already wrapped in SWIG
( using introspecting in gcc_xml ) , so moving it to Cython is really
not an option.
If the function is fast, why is it necessary to move it to Cython?
Like Robert points out: I can measure a 500*500 loop in Python, it
would be hard to measure it in Cython.
That's the bit I'm interested in ;')
Perhaps my question is naive, but I'm trying to understand why.
-jelle
More information about the Cython-dev
mailing list