I have a functions that calculates millions lines of data and I what to make it faster with multiprocessing.
Before now i have used only Pool
with map
like that:
from multiprocessing.dummy import Pool
pool = Pool(20)
pool.map(my_function, data_list)
But my function takes two parameters: list of companies and dictionary, with csv
files as values in it.
So my question is, How can I use multiprocessing with my function?