Hello Cython List,
I am curious, what code speeds up the most when Cythonized? A specific code example would be good. I think I am using the word Cythonize in the accepted fashion, but I am new to the community. By Cythonize, I mean converting .py files into .pyx files and then adding static type declarations to the code.
I am just curious, I want to see what speeds up the most, and thus perhaps gain a better understanding of how CPython and Cython each work internally.
How much faster have your projects gotten? I have done two projects in Cython. One project was statistical cross-correlation, but I don't know the speed-up factor because I wrote it in Cython from the beginning. The other project was numerical approximation, it had a 16x speed-up when I used "except? -1" in my cdef functions and a 20x speedup when I omitted exception handling altogether. I was disappointed to see only 20x speed-up.
The Cython documentation gives an example of numerically integrating a quadratic equation and it says there is a 150x speed-up. I have not tried compiling and running their example, I am hoping you can post examples with more extreme speed-up ratios.
Thank you,
Zak
I am curious, what code speeds up the most when Cythonized?
A specific code example would be good.
How much faster have your projects gotten?
--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.