[issue23563] Faster urllib.urlparse utility functions

2015-03-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue23563] Faster urllib.urlparse utility functions

2015-03-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 461afc24fabc by Serhiy Storchaka in branch 'default': Issue #23563: Optimized utility functions in urllib.parse. https://hg.python.org/cpython/rev/461afc24fabc -- nosy: +python-dev ___ Python tracker

[issue23563] Faster urllib.urlparse utility functions

2015-03-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch optimizes utility functions in the urllib.parse module. $ ./python -m timeit -s "from urllib.parse import splittype" -- "splittype('type:'+'x'*1000)" Unpatched: 10 loops, best of 3: 17 usec per loop Patched: 10 loops, best of 3: 15