Speed of Python 1.5.x vs 2.0
Alex Martelli
aleaxit at yahoo.com
Sun Dec 24 10:45:11 EST 2000
"Peter Schneider-Kamp" <peter at schneider-kamp.de> wrote in message
news:mailman.977653989.1950.python-list at python.org...
> Hei Alex!
>
> If you used the code you posted, I'm not surprised by
> the results. In the first module you have:
[timing withMap both times!]
Yep, thanks -- that's why I corrected it a few hours ago:-).
Timing the right functions, comprehension is shown to be
slower than map by a solid 10%, with a simple loop using
neither faster than either.
The correct version & results are now posted in the thread
"One Python 2.1 idea" in a response to Russell Turpin.
Alex
More information about the Python-list
mailing list