Intermediate collection avoidance
[]
Jake Wharton
Array ( users . This again trades the intermediate iterator and collection within map for an indexed loop. As you can see in the benchmarks above, the lambda initialization variants are both faster due to the use of indexed loops and allocate fewer bytes with no iterator or intermediate collection.