Peculiarities of the Stream API
summary
Covers quirks of Java's Stream API that can cause surprising performance regressions or behave differently than developers expect, examining specific stream constructs and pitfalls. Also demonstrates how to extend the Stream API by adding a custom operation and implement it in a way that achieves optimal performance.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:30Primitive streams and boxing
- 9:39Sorting and distinct in streams
- 16:25Parallel streams and limit
- 27:49Iterate array traversal
- 31:04Closing files in streams
- 39:58Short-circuit operations
- 49:58Exception search in streams
- 59:38Conclusion and Q&A
related talks
01h 01mGood Old Stream API
47mWhen Greed Is Good: Understanding Java Stream Performance
10mJava streams performance and optimization
47mStreams – Below the Surface
51mIf Streams Are So Great, Let’s Use Them Everywhere... Right??
44mThinking in Streams
01h 01mAPI Design with Java 8 Lambdas and Streams
32mThe Dark Side of Java 8
