Multiprocessing: How to use Pool.map on a function defined in a class?
I could not use the codes posted so far because the codes using “multiprocessing.Pool” do not work with lambda expressions and the codes not using “multiprocessing.Pool” spawn as many processes as there are work items. I adapted the code s.t. it spawns a predefined amount of workers and only iterates through the input list if … Read more