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 <1421785367.7.0.0040647429417.issue23266@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
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: <1421785367.7.0.0040647429417.issue23266@psf.upfronthosting.co.za>
2015-01-20 20:22:47serhiy.storchakalinkissue23266 messages
2015-01-20 20:22:47serhiy.storchakacreate