[Cython] Speed up cython for enum declarations

David Cournapeau cournape at gmail.com
Wed Dec 3 08:02:51 CET 2008


Hi,

I was wondering whether it would be easy to speed up cython
compilation of .pxd files which have a lot of enumerations. For my
small code generator, since I generate all enumerations from a set of
header files, I have a big number of them (> 1000), and this makes
cython compilation quite slow (several seconds). I may well just miss
something fundamental, but parsing/generating C code for enums sounds
relatively uncomplicated compared to other kind of cython code, right
? It is something which was not sped up because nobody cared, or is it
harder than I think ?

thanks,

David


More information about the Cython-dev mailing list