HenrikBengtsson / parallelly

R package: parallelly - Enhancing the 'parallel' Package
https://parallelly.futureverse.org
130 stars 7 forks source link

makeClusterPSOCK(): Make `workers = availableCores()` the new default #63

Closed HenrikBengtsson closed 3 years ago

HenrikBengtsson commented 3 years ago

Advantages:

Disadvantages:

HenrikBengtsson commented 3 years ago

An even better default might be makeClusterPSOCK(workers = availableWorkers()), which falls back to rep("localhost", times = availableCores()) if no other information is available.

Having said this, I'm gonna take the conservative approach and not set a default. It's better/safer to always specify workers explicitly.