Fork/Join is the default parallel computation framework in Java. Introduced first in Java 7 it made parallel recursive computations a joy. Java 8 came with several improvements to the internals of the ForkJoin. The performance overhead on relatively small tasks improved so much that now ForkJoin powers parallel stream operations.
This post offers a simple benchmark, created with Java Microbenchmark Harness, JMH, that measures the difference in performance of the ForkJoin in Java 8 vs. 7.
Continue reading to learn a bit about what techniques allow ForkJoin to be efficient and how the overhead of managing recursive tasks with FJ has improved in Java 8...
Edited by: Cameron McKenzie on Mar 30, 2014 9:49 PM