Skip to content

Commit 1ea6b94

Browse files
authored
perf(build): parallelize cython extension compilation (#1689)
1 parent c96a997 commit 1ea6b94

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build_ext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646

4747
class BuildExt(build_ext):
4848
def build_extensions(self) -> None:
49+
if self.parallel is None: # type: ignore[has-type]
50+
self.parallel = os.cpu_count() or 1
4951
try:
5052
super().build_extensions()
5153
except Exception:

0 commit comments

Comments
 (0)