Closed BeWe11 closed 5 years ago
There's a reason it's not used, yes. If you want the exact same interface as multiprocessing
provides, use pathos.pools._ProcessPool
. Close this ticket if the answer is sufficient for your needs.
Thank you for your answer. Although I'm still curious as to what this reason is, this fixes my issue. Thanks!
Hey,
the standard
map
method of themultiprocessing.Pool
class has achunksize
parameter. This parameter is very important to me, because my calculations don't take a lot of time too complete.As of now, the
map
method (and all other methods) of thepathos.pools.ProcessPool
class does not pass this parameter to thepathos.multiprocessing.Pool
class. In fact, it passes no keyword arguments at all.The ProcessPool.map method returns
There even is a commend
# chunksize
, maybe it's a TODO reminder? The chunksize is easily passed on if the keyword arguments are passed like this:Is there any reason why these parameters are not passed on, especially since there is even a commend indicating that someone thought about the chunksize parameter?
Thank you!