Sebastián Ramírez
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
scripts/docs.py
|
|
@ -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) |
|
|
|
|
|
|
|
|
|
|
|