domainslib icon indicating copy to clipboard operation
domainslib copied to clipboard

parallel_map

Open nilsbecker opened this issue 4 years ago • 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.

nilsbecker avatar Jul 21 '21 11:07 nilsbecker

I asked the author of parany for his opinion on a good parallel API. see https://github.com/UnixJunkie/parany/issues/55#issuecomment-894117856 for an answer.

nilsbecker avatar Aug 09 '21 19:08 nilsbecker