This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients cmn, pitrou, pmoody, python-dev, serhiy.storchaka
Date 2015-01-20.20:22:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Only one duplicated address is degenerated case. When there is a lot of duplicated addresses in range the patch causes regression.

$ ./python -m timeit -s "import ipaddress; ips = [ipaddress.ip_address('2001:db8::%x' % (i%100)) for i in range(100000)]" -- "ipaddress.collapse_addresses(ips)"

Unpatched: 10 loops, best of 3: 369 msec per loop
Patched: 10 loops, best of 3: 1.04 sec per loop
Date User Action Args
2015-01-20 20:22:47serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, pmoody, python-dev, cmn
2015-01-20 20:22:47serhiy.storchakasetmessageid: <>
2015-01-20 20:22:47serhiy.storchakalinkissue23266 messages
2015-01-20 20:22:47serhiy.storchakacreate