Skip to content
Advertisement

Tag: parallelstream

Java ParallelStream: several map or single map

Introduction I’m currently developing a program in which I use Java.util.Collection.parallelStream(), and wondering if it’s possible to make it more Multi-threaded. Several small map I was wondering if using multiple map might allow the Java.util.Collection.parallelStream() to distribute the tasks better: Single big map For example a better distribution than: Question Is there one of the solutions that is more suitable

Advertisement