3 ms·
Yes but map in Python is riduclously slow when map is combined with a lambda [1] [1]: https://stackoverflow.com/questions/1247486/list-comprehension-vs-map htt
by 0x008 5y ago
Yes but map in Python is riduclously slow when map is combined with a lambda [1]
[1]: https://stackoverflow.com/questions/1247486/list-comprehension-vs-map https://stackoverflow.com/questions/1247486/list-comprehensi...
- kzrdude 5y agoIt's a bit hard to find recent numbers in that decade-old thread, but the relevant, more up to date, evidence I see (in this answer) says that map is not much slower than a list comprehension: https://stackoverflow.com/a/57104206 https://stackoverflow.com/a/57104206