[Cython] Speed up cython for enum declarations
Stefan Behnel
stefan_ml at behnel.de
Fri Dec 5 11:28:13 CET 2008
Hi,
David Cournapeau wrote:
> On Fri, Dec 5, 2008 at 6:10 PM, Stefan Behnel wrote:
>
>> The newest one. I also pushed the Visitor fix to the cython release branch
>> now so that you can try it from there. But there were other improvements in
>> cython-devel that will improve the compilation speed for your case (and I
>> can't push those to the stable bug-fix branch).
>
> This is indeed significantly faster - around 20 % or so.
It was the same for lxml at the time of the fix.
> Still 20-30%, and gcc will become the main culprit :)
For lxml, that's been the case for ages. I never timed it, but it takes gcc
several times longer to compile the generated C code than it takes Cython
to generate it. To name some numbers, that's about 18000 lines of Cython
code (counting pyx,pxi,pxd) and some 155000 lines of generated C code.
Stefan
More information about the Cython-dev
mailing list