Author ezio.melotti
Recipients ezio.melotti, guido.reina, serhiy.storchaka, terry.reedy
Date 2013-02-15.22:28:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I would still do a benchmark, for these reasons:
1) IIRC rawdata might be the whole document (or at least everything that has not been parsed yet);
2) the '>' is very likely to be found;

This situation is fairly different from the one presented in #17170, where the strings are shorts and the character is not present in the majority of the strings.

Profiling and improving html.parser (and hence _markupbase) was already on my todo list (even if admittedly not anywhere near the top :), so writing a benchmark for it might be useful for further enhancements too.

(Note: HTMLParser is already fairly fast, parsing ~1.3MB/s according to, but I've never done anything to make it even faster, so there might still be room for improvements.)
Date User Action Args
2013-02-15 22:28:07ezio.melottisetrecipients: + ezio.melotti, terry.reedy, serhiy.storchaka, guido.reina
2013-02-15 22:28:07ezio.melottisetmessageid: <>
2013-02-15 22:28:07ezio.melottilinkissue17183 messages
2013-02-15 22:28:06ezio.melotticreate