Code that ought to run fast, but can't due to Python limitations.

Paul Rubin http
Sun Jul 5 13:09:26 CEST 2009


Stefan Behnel <stefan_ml at behnel.de> writes:
> You may notice that the creation of this exact tuple appears in almost all
> if the conditionals of this method. So it is part of the bottleneck.

I don't think so.  The tuple is only created when the character has
already matched, and for the vast majority of the chars in the input
stream (ordinary text chars rather than html delimiters) none of them
match.



More information about the Python-list mailing list