| Store | Cart

list-comprehension and map question (simple)

From: Cameron Laird <cla...@lairds.us>
Wed, 30 Mar 2005 19:08:04 GMT
In article <1112200377.855627.236440 at z14g2000cwz.googlegroups.com>,
runsun pan <runsun at gmail.com> wrote:
			.
			.
			.
>Secondly, [x+y for x,y in itertools.izip(xs, ys)] did go much faster>than map(lambda x,y: x+y, xs, ys). The latter is not only the slowest>one, but with an amazingly slow speed of 15 times slowdown.>

If I understand the story correctly, this reflects Raymond Hettinger's
extraordinary achievement in making all things iter* really, really
quick.

Recent Messages in this Thread
Charles Hartman Mar 27, 2005 02:51 pm
Nicolas Évrard Mar 27, 2005 03:19 pm
Brian van den Broek Mar 27, 2005 06:18 pm
Charles Hartman Mar 27, 2005 06:35 pm
Brian van den Broek Mar 27, 2005 07:12 pm
Brian van den Broek Mar 27, 2005 07:41 pm
Cameron Laird Mar 30, 2005 07:08 pm
runsun pan Mar 28, 2005 02:51 pm
Robert Kern Mar 28, 2005 03:04 pm
runsun pan Mar 30, 2005 04:32 pm
Messages in this thread