Author meador.inge
Recipients benjamin.peterson, jcea, meador.inge, ncoghlan, ron_adam, terry.reedy
Date 2011-12-21.02:10:36
SpamBayes Score 4.35532e-05
Marked as misclassified No
Message-id <1324433437.77.0.774028121466.issue13607@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-12-21 02:10:38meador.ingesetrecipients: + meador.inge, terry.reedy, jcea, ncoghlan, ron_adam, benjamin.peterson
2011-12-21 02:10:37meador.ingesetmessageid: <1324433437.77.0.774028121466.issue13607@psf.upfronthosting.co.za>
2011-12-21 02:10:37meador.ingelinkissue13607 messages
2011-12-21 02:10:36meador.ingecreate