👷 Tweak build-docs to improve CI performance (#5699)

This commit is contained in:
Sebastián Ramírez authored and GitHub committed 2022-11-27 14:22:30 +00:00
1 parent 9b4e85f088
commit 884203676d
1 file changed
+3 -1
+3 -1
View File
@@ -284,7 +284,9 @@ def build_all():
continue
langs.append(lang.name)
cpu_count = os.cpu_count() or 1
with Pool(cpu_count * 2) as p:
process_pool_size = cpu_count * 4
typer.echo(f"Using process pool size: {process_pool_size}")
with Pool(process_pool_size) as p:
p.map(build_lang, langs)