[issue1285086] urllib.quote is too slow
Florent Xicluna
report at bugs.python.org
Tue May 11 15:44:34 CEST 2010
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
New patch, using str.translate instead of regexp.
It is faster for normal cases (85% less time than stdlib quote), and the penalty for the real-quoting case is less than 5%.
It should apply to 3.x with some adaptation.
----------
Added file: http://bugs.python.org/file17295/issue1285086_using_translate.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1285086>
_______________________________________
More information about the Python-bugs-list
mailing list