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
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to