Refactor multiprocessing pool

This commit is contained in:
James R. Barlow
2020-04-26 03:49:13 -07:00
parent ce49fc26dd
commit db3e75e33e
3 changed files with 133 additions and 51 deletions
+1 -1
View File
@@ -637,7 +637,7 @@ def _pdf_pageinfo_concurrent(pdf, infile, pages_xml, detailed_analysis, progbar)
global worker_pdf
worker_pdf = pdf
pool = Pool(
processes=4, # max_workers,
processes=1, # max_workers,
initializer=_pdf_pageinfo_sync_init,
initargs=tuple(),
)