[issue1285086] urllib.quote is too slow

Senthil Kumaran report at bugs.python.org
Mon May 17 19:37:32 CEST 2010


Senthil Kumaran <orsenthil at gmail.com> added the comment:

On Mon, May 17, 2010 at 01:38:57PM +0000, Florent Xicluna wrote:
> Committed in r81265 for 2.7.

Thanks. That was interesting. Without resorting to any drastic changes like
use of regex, interesting speed-up seems to have been achieved by
using rsplit and map.

In py3k, I think its 'okay' to go for rsplit, defaultdict and map
which will be similar to py2k version. I saw that map vs list
comprehension did not have much differences.

----------

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


More information about the Python-bugs-list mailing list