Paralelizados los mapeos
Esto es para mucha mas rapida ejecucion <3
This commit is contained in:
@@ -69,3 +69,8 @@ def sanitize_keys(json):
|
||||
return json
|
||||
|
||||
|
||||
def parallel_map(items, function):
|
||||
from multiprocessing import Pool
|
||||
|
||||
with Pool() as pool:
|
||||
return pool.map(function, items)
|
||||
|
||||
Reference in New Issue
Block a user