Skip to content

Commit 61c67be

Browse files
authored
Set opt-level 1 for fast build profile (#16481)
Test cases: ``` touch crates/uv-resolver/src/resolver/mod.rs && time cargo nextest run --cargo-profile dev --no-fail-fast -- --skip python_install touch crates/uv-resolver/src/resolver/mod.rs && time cargo nextest run --cargo-profile fast-build --no-fail-fast -- --skip python_install ``` On my machine, we go from 7.x s (dev) to 8.x s (dev + opt-level 1) for compilation, and 6.x s for the combined `fast-build` profile. With opt-level 1, we go from 84s for the first line to 64s for the second line.
1 parent cfa1de3 commit 61c67be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ lto = false
314314

315315
[profile.fast-build]
316316
inherits = "dev"
317+
opt-level = 1
317318
debug = 0
318319
strip = "debuginfo"
319320

0 commit comments

Comments
 (0)