1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

pdf input uses all cpu cores

This commit is contained in:
Alex Xu
2025-07-20 08:51:55 -07:00
parent eb24a400b4
commit 8f08c63f4e

View File

@@ -794,7 +794,7 @@ def mupdf_pdf_process_pages_parallel(filename, output_dir, target_height):
print("Starting %i processes for '%s'." % (cpu, filename))
try:
with Pool(processes=cpu_count()-1) as pool:
with Pool() as pool:
results = pool.map(
render_page if render else extract_page, vectors
)