Speed: bytecode vz C API calls
Jacek Generowicz
jacek.generowicz at cern.ch
Wed Dec 10 11:26:49 EST 2003
aahz at pythoncraft.com (Aahz) writes:
> Generally speaking, map() won't be any faster than a for loop.
This is at odds with my own experience (including a lot of timing runs
in the last two days), countless posts on this newsgroup over the
years, and, for exapmle, this article
http://www.python.org/doc/essays/list2str.html
by Guido, in which he concludes that
"An implied loop in map() is faster than an explicit for loop"
More information about the Python-list
mailing list