Where does the performance boost of map or list comprehension implementations over calling a function over a loop come from?

后端 未结 2 2030
长发绾君心
长发绾君心 2020-12-17 05:19

I understand that you could be more efficient with memory in the implementation of map than in how you might do it over a loop. However, I see that using a map function over

2条回答
提交回复
热议问题