O'Reilly logo
  • LUIS ENRIQUE LEON thinks this is interesting:

Java 8 can optimize operations on streams in a way that Java can’t do for collections—for example, it can group together several operations on the same stream, so that the data is traversed only once instead of expensively traversing it multiple times.


Cover of Java 8 in Action: Lambdas, streams, and functional-style programming


Benchmark de multiples operaciones en un solo traverse vs las mismas operaciones para una colección