Commit dbba4cf
committed
perf(build): parallelize cython extension compilation
Default `build_ext`'s `parallel` to `os.cpu_count()` so the per-module
`gcc` compile step runs in parallel. Wheel builds for emulated archs
(riscv64 + armv7l via QEMU) currently spend ~16 of their ~20 minutes
serializing 18 `gcc -O3` invocations; on 4-core runners this should drop
the compile phase to ~4-5 minutes.1 parent c96a997 commit dbba4cf
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments