Message242260
| Author |
mark.dickinson |
| Recipients |
lukasz.langa, mark.dickinson, pitrou, rhettinger, serhiy.storchaka |
| Date |
2015年04月30日.04:08:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1430366910.73.0.553196971989.issue24076@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Throwing out sum, I'm seeing significant slowdown simply from xrange versus range:
taniyama:Desktop mdickinson$ python2 -m timeit -s 'x = xrange(3, 10**9, 3)' 'for e in x: pass'
10 loops, best of 3: 5.01 sec per loop
taniyama:Desktop mdickinson$ python3 -m timeit -s 'x = range(3, 10**9, 3)' 'for e in x: pass'
10 loops, best of 3: 8.62 sec per loop |
|