Skip to content

Rust crate compile times on macOS arm64 are incredibly slow #3784

@prrao87

Description

@prrao87

Description

I'm on macOS Sonoma 14.5 (M3 Macbook), and I'm revisiting the Rust crate's compile time issue I'd noticed earlier on macOS. In 0.4.2 of Kùzu, running cargo build gets stuck on step 35/38 of the compilation process (the step in which the Kùzu linking happens). Eventually, after 5-8 minutes, it finally compiles and I can then do cargo run. I'd expect cargo build --release to take even longer than this.

Changing the environment variables like we discussed earlier CARGO_BUILD_JOBS, or manually setting CMAKE_BUILD_PARALLEL_LEVEL may help with building from source, but I'm thinking from an end user perspective (setting either of these prior to cargo build has no effect).

Is there any way at all the compile times for the Rust crate could be improved on arm64 Macs? Waiting 5-8 mins seems unreasonable, even if it's for the first build only.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions