In my map functions i have an object containing a list which must be changed, executing some logic.
So, considering java 8 parallel streams would it be worth to use them or does IterativeStreams offer a better performance without java 8 streams parallel overhead?
Iterate until all elements were changed perhaps. But just wanted to know if there areimplementations out there using java 8 streams, in cases where you want to parallelize a map function even if it is function scoped.
So, in my case, if the computation for each list element is to heavy, how can one parallelize it?
I think for that you would unpack to List of values, for example with a FlatMap<List<T>, T>. This would emit each element of the list as a separate element. Then, downstream operations can operate on each element individually and you will exploit parallelism in the cluster.