On Dec 2, 2008, at 11:02 PM, David Cournapeau wrote: > 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 ?
No, this is a big issue for me with Sage as well (not just enumerations, but long lists of declarations in general). I've got some code that speeds things up by a factor of two or so, but haven't checked it in yet (it was mixed in with a bunch of failed speedups, and I didn't have time to clean it up at the time). Unfortunately the devel branch is even less stable than usual, as temporary variable handling is undergoing a major shift, but I'll try to check it in and you can see if that helps. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
