Commit 9b65c91
authored
perf(build): parallelize mypyc compile with -j $(NPROC) (#7554)
setuptools' build_ext runs serially by default. Pass -j with a
cross-platform CPU count so install-devc uses all cores. NPROC comes
from python -c "import os; print(os.cpu_count() or 1)" — portable
across Linux/macOS/Windows and shells; no dependency on nproc/sysctl.1 parent 78d2b74 commit 9b65c91
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments