rdicosmo / parmap

Parmap is a minimalistic library allowing to exploit multicore architecture for OCaml programs with minimal modifications.
http://rdicosmo.github.io/parmap/
Other
94 stars 20 forks source link

when ~ncores=1, Parmap should not fork #77

Open UnixJunkie opened 5 years ago

UnixJunkie commented 5 years ago

We don't want Parmap to be invoked in vain. Also, this would ease writing tests for Parmap. List.map is equivalent to Parmap.map ~ncores:1 and there is almost no overhead.