[Cython] optimization tips...?

Stefan Behnel stefan_ml at behnel.de
Tue Apr 28 16:06:41 CEST 2009


Hi,

just responding to the last bit for now:

Jean-Francois Moulin wrote:
> One more question related to this... I do I profile a cython file (the
> info from the
> python profiler is no longer split into the different subfunctions...)?

If you're on Linux, use valgrind's callgrind and kcachegrind. It will give
you clickable call graphs with relative timings per branch, and timing
annotated C sources. Perfect for finger pointing.

Stefan



More information about the Cython-dev mailing list