[Cython] Speed up cython for enum declarations
Stefan Behnel
stefan_ml at behnel.de
Fri Dec 5 10:10:18 CET 2008
David Cournapeau wrote:
> On Fri, Dec 5, 2008 at 5:20 PM, Stefan Behnel wrote:
>> Robert Kern wrote:
>>> It looks like a fair chunk of time is getting spent by the getattr() on line 26
>>> of Visitor.py:BasicVisitor.visit() because of missing entries in the
>>> dispatch_table.
>> BTW, I just noticed that I forgot to push my fix for that code section to
>> the release branch. There's a bug in there that renders the dispatch_table
>> mostly useless.
>>
>> If you try with cython-devel, it should compile a *lot* faster.
>
> Which revision are you using?
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).
> Using the last cython-devel crashes on my files, unfortunately.
That's almost certainly due to the temp refactoring. Please report any
crashes you get, preferably with a short code snippet that shows the
problem, so that we can fix them.
Stefan
More information about the Cython-dev
mailing list