Skip to content

Commit

Permalink
馃懛 Tweak build-docs to improve CI performance (#5699)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Nov 27, 2022
1 parent 9b4e85f commit 8842036
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/docs.py
Expand Up @@ -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)


Expand Down

0 comments on commit 8842036

Please sign in to comment.