[Cython] Speed up cython for enum declarations
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Dec 5 00:35:01 CET 2008
Robert Bradshaw wrote:
> Perhaps a 1000 line
> enum is a bit faster, but it seems like it should be a lot faster
It might be informative to find out what proportion of
the time is spent on scanning, parsing, building the
parse tree, traversing the parse tree, etc.
If building and traversing the parse tree turns out
to be a significant component, maybe a more compact
way of representing an enum declaration in the parse
tree could be found. E.g. in the simple case where
all the values are int literals, have the parser turn
it into a name->value dict.
--
Greg
More information about the Cython-dev
mailing list