Message199113
Here is a simple benchmark (Linux, gcc 4.7.3):
$ ./python -m timeit -s "words=[w for line in open('LICENSE') for w in line.split()]; import collections" "c = collections.Counter(words); c.most_common(10)"
- 64-bit build, before: 313 usec per loop
- 64-bit build, after: 298 usec per loop
- 32-bit build, before: 328 usec per loop
- 32-bit build, before: 329 usec per loop
- x32 build, before: 291 usec per loop
- x32 build, after: 284 usec per loop |
|
Date |
User |
Action |
Args |
2013-10-06 19:23:52 | pitrou | set | recipients:
+ pitrou, ncoghlan, christian.heimes |
2013-10-06 19:23:52 | pitrou | set | messageid: <1381087432.31.0.64004812114.issue19183@psf.upfronthosting.co.za> |
2013-10-06 19:23:52 | pitrou | link | issue19183 messages |
2013-10-06 19:23:52 | pitrou | create | |
|