[issue1285086] urllib.quote is too slow
Tres Seaver
report at bugs.python.org
Fri Apr 30 00:24:42 CEST 2010
Tres Seaver <tseaver at agendaless.com> added the comment:
I'm uploading a saner version of the speed test which uses timeit's support for passing a callable as a statement: it is much easier to
see what the test is actually doing.
On my machine, running against the release26-maint branch, my version runs anywhere from 67% to 85% faster on the cases where no quoting actually needs to be done. In production use, where urlib.quote is used as a safety check, these cases far outweigh the cases which actually require quoting.
----------
Added file: http://bugs.python.org/file17133/urllib_better_speed_test.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1285086>
_______________________________________
More information about the Python-bugs-list
mailing list