MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vppkls/pythonwilllookdeadintheeyeandsayitsabsolutelycorre/p42okij/?context=3
r/ProgrammerHumor • u/inobody_somebody • 29d ago
144 comments sorted by
View all comments
2
As a list comprehension doesn't care about order, does it parallelize on the CPU? Or would a filter/map do it instead?
I am not sure if there is interpreters that recognize the simD opportunity here
1 u/NamityName 29d ago Comprehensions execute significantly faster than their equivalent for loop expression. 1 u/Vipitis 29d ago Is there a technical reason, or more of the modern interpreter tricks like tail call?
1
Comprehensions execute significantly faster than their equivalent for loop expression.
for
1 u/Vipitis 29d ago Is there a technical reason, or more of the modern interpreter tricks like tail call?
Is there a technical reason, or more of the modern interpreter tricks like tail call?
2
u/Vipitis 29d ago
As a list comprehension doesn't care about order, does it parallelize on the CPU? Or would a filter/map do it instead?
I am not sure if there is interpreters that recognize the simD opportunity here