Tres Seaver <tsea...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue1285086>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to