multiprocessing: Understanding logic behind `chunksize`
Short Answer Pool’s chunksize-algorithm is a heuristic. It provides a simple solution for all imaginable problem scenarios you are trying to stuff into Pool’s methods. As a consequence, it cannot be optimized for any specific scenario. The algorithm arbitrarily divides the iterable in approximately four times more chunks than the naive approach. More chunks mean … Read more