[Cython] Measuring "C-ness"?
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Fri Feb 6 12:58:15 CET 2009
Stefan Behnel wrote:
> Magnus Lie Hetland wrote:
>> I'd like to profile the code, to see where it goes
>> through Cython/the Python C API (or even Python code), so I can
>> eliminate those calls.
>
> Have you looked at Cython's annotation (-a) feature? It will generate an
> HTML page of your source code that highlights Python operations.
Also, if you declare functions as "nogil" then Python operations will be
disallowed.
--
Dag Sverre
More information about the Cython-dev
mailing list