There has been a lot of talk about the speed of streams in Java 8, but as Alex Zhitnitsky shows, sticking to a more traditional Java programming style with iterators and for-each loops will significantly outperform new implementations in Java 8.
It’s a Superman vs. Batman battle. If we pit sequential streams against regular for-loops, which one comes out faster? After some careful benchmark tests, Angelika Langer shows us which is fastest, and why must be careful to make judgements.
Puzzling out streams in Java 8? This tutorial will get you off on the right foot.
Raoul-Gabriel Urma shows you how to use steam operations to express sophisticated data processing queries.