Closed epogrebnyak closed 6 years ago
Current specific question is making dispatch.evaluate()
run faster.
Possible ways to go further:
def multithreading(func, args,
workers):
with ThreadPoolExecutor(workers) as ex:
res = ex.map(func, args)
return list(res)
def multiprocessing(func, args,
workers):
with ProcessPoolExecutor(work) as ex:
res = ex.map(func, args)
return list(res)
manage.parse
seems to run slower than its components, if correctly measuredparse(2018, 1)
is 4 times greater than sum of its componentsisolation1()
andisolation2
?Must use
dev-slim
branch for this task.https://github.com/mini-kep/parser-rosstat-kep/blob/00440ec8bed7634e0a8bf20cbf867a8b789fffc8/src/manage.py#L214-L234