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 <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-07-17 00:48:12 +10:00 committed by GitHub
parent 9746ce9ca3
commit b3b682a1af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."*"]