[issue1285086] urllib.quote is too slow

Florent Xicluna report at bugs.python.org
Tue May 11 16:02:36 CEST 2010


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

The speed test script did not work on 2.5 (because timeit.Timer does not accept a callable).
Fixed version, which benchmarks the str.translate(...) version.

Change the '_new_quote_setup' assignment to test other variants.

----------
Added file: http://bugs.python.org/file17297/urllib_quote_speed_test.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1285086>
_______________________________________


More information about the Python-bugs-list mailing list