[issue18020] html.escape 10x slower than cgi.escape
Matt Bryant
report at bugs.python.org
Tue May 21 01:05:30 CEST 2013
Matt Bryant added the comment:
I did a few more tests and am seeing the same speed differences Florent noticed.
It seems reasonable to use .replace() instead, as it does the same thing significantly faster.
I've attached a patch doing just this.
----------
keywords: +patch
nosy: +Teh Matt
Added file: http://bugs.python.org/file30325/htmlescape.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18020>
_______________________________________
More information about the Python-bugs-list
mailing list