[Cython] Speed up cython for enum declarations

David Cournapeau cournape at gmail.com
Thu Dec 4 00:36:00 CET 2008


On Thu, Dec 4, 2008 at 8:25 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

>
> Are you sure that it is? Do you have timings indicating that
> parsing 1000 lines of enum declarations is significantly slower
> than parsing 1000 lines of any other kind of Cython code?

As far as I can tell, enum are not slower to parse than any other kind
of cython code, but they "seem" much easier to parse. Since some API
have an order of magnitude more enums than functions, it has became a
problem for me.

>
> The relevant section of the Pyrex docs is here:
>
> http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/source_files.html#mozTocId233830

I was not aware of this feature, thanks.

cheers,

David


More information about the Cython-dev mailing list