David Cournapeau wrote: > Something like the following: > > ctypedef enum: > enum1 = 0 > ... > enum1000 = 0 > > Takes a significant amount of time, which surprised me a bit. Now, "it > is slow because nobody bothered speeding it up" is a totally vaild > answer :)
Sounds like a bug to me that's worth filing a bug report for. Some profiling (using an uncompiled Cython!) will tell you where the problem is. >> Only Cython can know the inter-dependencies of .pxd, .pxi and .pyx >> files, >> which are based on cimports and includes in the source. Look out for >> .dep files in your source directory after the generation. > > I don't understand why only cython can know about it; many build tools > handle dependencies without the compiler's help, I don't see why it is > any different for cython ? I don't have .dep files, but then, I don't > use distutils either, so that may explain it. If parsing .h files slowed down C compilation significantly, would you try to improve 'make' to speed it up? This is a problem that needs to be solved in Cython, not in any external build tool or dependency tracker. Tracking the dependencies of a future pre-parsed .pxd file is only a minor issue. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
