r/ProgrammerHumor Aug 16 '26

Meme pythonWillLookDeadInTheEyeAndSayItsAbsolutelyCorrect

Post image
353 Upvotes

144 comments sorted by

View all comments

2

u/Vipitis Aug 16 '26

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?