`builtins.map` performance improvement for one iterable

Yes, about optimization of it for one iterable.

Although it is a general optimization, the angle from which this came from is that performance of any in combination with map for short sequences would be closer to that of a loop.

P.S. A lot of the times, the quoted text doesn’t stick and I need to edit and insert the quote again. Anyone else having this issue?

If you quote the whole post, Discourse removes the quote on the basis that it adds no value (the post you’re replying to is shown anyway). I’m not sure I agree with it, but that’s the logic.

2 Likes