News for hackers. Stuff that matters.
Re:Loops in Python – Comparison and Performance by BerislavLopac on Friday August 09, 2019 @06:23PM (#20658679)
That is interesting. It's possible that they have done some optimisations on loops since the last time I measured it, but that was back in Python 2.6 (I think), and map was much faster than a loop (no comprehensions back then), and it was particularly obvious on very high number of input elements.

Also, from your description I suspect that the list() call over a generator might introduce extra overhead, rather than map itself...

Re:Loops in Python – Comparison and Performance by dagw on Saturday August 10, 2019 @04:04AM (#20660818)
Your last comment seems reasonable. I guess the new rule of thumb should be maps are still fast, but only if you want a generator. If you need a list use a list comprehension.