I am using multiprocessing.Pool()
multiprocessing.Pool()
here is what i want to Pool:
def insert_and_process(file_to_process,db): db = DAL(\"path_to_mysql\
Using
params=[(x,y) for x in X for y in Y]
you create a full copy of x and y, and that may be slower than using
x
y
from itertools import repeat P.map(insert_and_process,zip(file_list,repeat(db)))