filmov
tv
Java Parallel Streams Internals: Demo'ing Collector Performance (Part 3)

Показать описание
This video explores the performance of concurrent and non-concurrent collectors in Java when dealing with sequential and parallel streams. I show the results or running the ex36 driver program to compute benchmarks with different numbers of words from Shakespeare's works to gauge the efficiency and scalability of concurrent and non-concurrent collectors for sequential and parallel streams. The results show that for small datasets, sequential streams outperform their parallel counterparts. However, as the data size increases, especially around ~910,000 words, parallel concurrent collectors become significantly more efficient. I also contrast the performance of hash sets and tree sets, finding that tree sets perform exceptionally well with parallel concurrent collectors for large datasets. Lastly, I walk through the internals of a custom ConcurrentSetCollector that is optimized for different types of Java Set implementations, including HashSet and TreeSet.
Java Parallel Streams Internals: Demo’ing Collector Performance
Java Parallel Streams Internals: Demo’ing Spliterator Performance
Java Parallel Streams Internals: Demo’ing How to Configure the Common Fork-Join Pool
Java Parallel Streams Internals: Demo’ing How to Configure the Common Fork-Join Pool
Java Parallel Streams Internals: Demo’ing Spliterator Performance
Java Parallel Streams Internals: Demo’ing Collector Performance
Java Parallel Stream Internals: Demo'ing Collector Performance
Java Parallel Streams Internals: Demo’ing Collector Performance
Java Parallel Stream Internals: Demo'ing Spliterator Performance
Java Parallel Streams Internals: Demo'ing Collector Performance (Part 1)
Java Parallel Streams Internals: Demo’ing Spliterator Performance
Java Parallel Streams Internals: Demo'ing How to Configure the Common Fork-Join Pool
Java Parallel Streams Internals: Demo'ing Spliterator Performance
Java Parallel Stream Internals: Demo'ing How to Configure the Common Fork-Join Pool
Java Parallel Streams Internals: Demo’ ing How to Configure the Common Fork-Join Pool
Java Parallel Streams Internals: Order of Results (Part 1)
Java Parallel Streams Internals: Introduction
Java Parallel Streams Internals: Order of Processing Overview
Java Parallel Streams Internals: Demo'ing Collector Performance (Part 3)
Java Parallel Streams Internals: Introduction
Java Parallel Streams Internals: Order of Processing Overview
Java Parallel Streams Internals: Combining Results (Part 1)
Java Parallel Streams Internals: Parallel Processing w/the Common Fork-Join Pool
Java Parallel Streams Internals: Partitioning
Комментарии