filmov
tv
Concurrent vs. Non-Concurrent Set Collectors for Java Sequential and Parallel Streams (Part 1)

Показать описание
This video walks through an example that creates various Set objects containing the unique words appearing in the complete work of William Shakespeare. It also shows the difference in overhead between collecting results in a parallel stream vs. sequential stream using concurrent and non-concurrent collectors for various types of Java Set implementations, including HashSet and TreeSet.