Message149953
With the new patch I see no benefits on the same micro-benchmarks you posted (it is even slower for the smaller case) on a quad-core 64-bit F15 box:
BEFORE:
$ ./python -mtimeit "def y(n):" " for x in range(n):" " yield x" "sum(y(10))"
1000000 loops, best of 3: 1.33 usec per loop
$ ./python -mtimeit "def y(n):" " for x in range(n):" " yield x" "sum(y(1000000))"
10 loops, best of 3: 66 msec per loop
AFTER:
$ ./python -mtimeit "def y(n):" " for x in range(n):" " yield x" "sum(y(10))"
1000000 loops, best of 3: 1.45 usec per loop
$ ./python -mtimeit "def y(n):" " for x in range(n):" " yield x" "sum(y(1000000))"
10 loops, best of 3: 65.8 msec per loop |
|
Date |
User |
Action |
Args |
2011-12-21 02:10:38 | meador.inge | set | recipients:
+ meador.inge, terry.reedy, jcea, ncoghlan, ron_adam, benjamin.peterson |
2011-12-21 02:10:37 | meador.inge | set | messageid: <1324433437.77.0.774028121466.issue13607@psf.upfronthosting.co.za> |
2011-12-21 02:10:37 | meador.inge | link | issue13607 messages |
2011-12-21 02:10:36 | meador.inge | create | |
|