Patchset 5 is up to 2x faster than Patchset 4: $ python summarize_test.py summarize_address_range(IP('0.0.0.0',host=True),IP('255.255.255.254',host=True)): 27.5853071213 ...
3 months, 2 weeks ago
Patchset 5 is up to 2x faster than Patchset 4:
$ python summarize_test.py
summarize_address_range(IP('0.0.0.0',host=True),IP('255.255.255.254',host=True)):
27.5853071213 s
FASTER
summarize_address_range(IP('0.0.0.0',host=True),IP('255.255.255.254',host=True)):
13.916675806 s
summarize_address_range(IP('0.0.0.0',host=True),IP('255.255.255.255',host=True)):
1.07070207596 s
FASTER
summarize_address_range(IP('0.0.0.0',host=True),IP('255.255.255.255',host=True)):
0.798449993134 s
summarize_address_range(IP('::',host=True),IP('ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe',host=True)):
288.603591919 s
FASTER
summarize_address_range(IP('::',host=True),IP('ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe',host=True)):
118.820824862 s
summarize_address_range(IP('::',host=True),IP('ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',host=True)):
2.90339279175 s
FASTER
summarize_address_range(IP('::',host=True),IP('ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',host=True)):
1.67668795586 s
http://codereview.appspot.com/67107/diff/2006/2008 File ipaddr.py (right): http://codereview.appspot.com/67107/diff/2006/2008#newcode252 Line 252: raise IPTypeError("first and last must be IP addresses ...
Fixes in Patch Set 7 http://codereview.appspot.com/67107/diff/2006/2008 File ipaddr.py (right): http://codereview.appspot.com/67107/diff/2006/2008#newcode252 Line 252: raise IPTypeError("first and ...
Issue 67107: collapse_address_list is too slow
Created 6 months, 1 week ago by Matthew Flanagan
Modified 2 months, 3 weeks ago
Reviewers:
SVN Base: http://ipaddr-py.googlecode.com/svn/trunk/
Comments: 8