Performance of Comprehensions versus For Loops

I am aware of it, but many extra ingredients are needed to replicate what eg map or collect does. Eg recursively calling on widening:

using size hints for preallocating, etc. It is all feasible (since it is done in Base :wink:), but you essentially end up reimplementing Base functionality, which is very involved.

1 Like