ocaml-multicore/domainslib

parallel_map

Opened this issue · 1 comments

As discussen in #33 it appears useful to have a parallel_map function over arrays. The signature would be
val parallel_map : Domainslib.Task.pool -> ('a -> 'b) -> 'a array -> 'b array . The pool comes first as in the other parallelization functions.

I asked the author of parany for his opinion on a good parallel API. see UnixJunkie/parany#55 (comment) for an answer.