So, I've a summer project that focuses on accelerating a library. I thought at first to move some of the computationally intense functions to Cython. During profiling, I found that the function with the highest percentage runtime from the custom library, that is, not from a default python library, took up about 76% of run time. I shifted this to a cython file, compiled, and ran, but I found that the run-time for the cython version was about the same as the pure python version. I didn't do any optimizations through static typing or the like, and I didn't expect a huge speedup, but I expected a noticeable change in run time just from the compilation alone; the lack of this makes me wonder if I've done something wrong in my implementation.
Does anyone have any experience or sources with this workflow, that is using cython to accelerate a pre-existing python library?
--
---
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/d/optout.
Hi,of course it depends a lot on what your code is actually doing, but I had very similar experiences when trying to "just compile something". No speed-up or even worse performance. This changed dramatically when I used static typing.