Lazy evaluation proven step by step, how the stream pipeline actually fuses and executes, Spliterator characteristics and parallel splitting, IntStream/LongStream to avoid autoboxing, parallel streams and the ForkJoinPool traps, and when parallel() actively makes things slower.
// Lessons
- 01soon
The Stream Mental Model — Source, Intermediate, Terminal
- 02soon
Lazy Evaluation — Nothing Executes Until the Terminal Operation
- 03soon
Stream Sources — Collection, Arrays, Stream.of, iterate, generate
- 04soon
Intermediate Operations — filter, map, flatMap, sorted, distinct
- 05soon
Terminal Operations — collect, reduce, forEach, count, findFirst
- 06soon
The Spliterator — Java's Parallel Iteration Protocol
- 07soon
Stream Pipeline Execution — How the Stages Actually Fuse
- 08soon
Parallel Streams — ForkJoinPool, Encounter Order and Thread Safety
- 09soon
When Parallel Hurts — Overhead, Ordering Cost and the Wrong Workload
- 10soon
IntStream, LongStream, DoubleStream — Avoiding Autoboxing in Streams