list-comprehension and map question (simple)

Cameron Laird claird at lairds.us
Wed Mar 30 14:08:04 EST 2005


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.



More information about the Python-list mailing list