From b3b682a1af93699b337c5c71af7df7034d015c36 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 17 Jul 2023 00:48:12 +1000 Subject: [PATCH] Optimize `profile.dev`: Set `codege-units` to 32 (#1199) Splitting too many codege-units would actually takes longer to compile due to overhead of parallelism in backend. Also, our CI does not have that many CPU cores to take advantages of. Signed-off-by: Jiahao XU --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index fa656bd6..1ad5788a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ debug = true lto = false debug-assertions = true overflow-checks = true -codegen-units = 1024 +codegen-units = 32 # Set the default for dependencies on debug. [profile.dev.package."*"]