[Python-Dev] genexps slow? (original) (raw)
Guido van Rossum guido at python.org
Wed Mar 31 00:29:23 EST 2004
- Previous message: [Python-Dev] more on PEP 318
- Next message: [Python-Dev] genexps slow?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Can anybody explain this?
[guido at guido linux]$ ./python ../Lib/timeit.py -s 'r=range(10000)' 'sum([x for x in r])' 100 loops, best of 3: 7.75 msec per loop [guido at guido linux]$ ./python ../Lib/timeit.py -s 'r=range(10000)' 'sum(x for x in r)' 100 loops, best of 3: 8.23 msec per loop
(I believe this is with the penultimate version of the patch from SF.)
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] more on PEP 318
- Next message: [Python-Dev] genexps slow?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]