How to parallelize a fold with parallel evaluation strategies in Haskell

Is it possible to create a parallel strategy with parallel evaluation strategies ( Control.Parallel.Strategies) in Haskell when the bend function is associative (e.g. addition)?

My idea was to break the list into pieces, but how should the size of the (optimal) piece be calculated? Is there a general way?

+4
source share

All Articles