Guido's regrets: filter and map

Robin Becker robin at jessikat.fsnet.co.uk
Sun Nov 24 14:29:22 EST 2002


In article <arqrso$b2j$1 at wheel2.two14.net>, maney at pobox.com writes
.... anything with a lambda is already doomed as the lambda time
dominates. As for the del I use it to remove the possibility that memory
use from the first test will cause problems for the second etc
>maney at wheel2:~$ python2.2 sorry.py
>for loop took 2.58 to make a list of 142857 items
>list comprehension took 2.46 to make a list of 142857 items
>map took 3.24 to make a list of 142857 items
>
>Okay, that's enough for now.

-- 
Robin Becker



More information about the Python-list mailing list