Re:Shopify invests in research for Ruby at scale
by kaba0 on Tuesday May 17, 2022 @05:14AM
(#31407830)
Not sure about Ruby, but Java’s streams would do one loop only here, as they are lazy. Also, both solutions are O(n), so unless this is the hot loop of your program, or it iterates over some insane amount of entities, it is a completely meaningless microoptimization.
[ Parent
| on HN ]
There are no comments on this comment yet.