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.
This commit is contained in:
konsti 2025-10-28 13:31:18 +01:00 committed by GitHub
parent cfa1de311e
commit 61c67bebcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -314,6 +314,7 @@ lto = false
[profile.fast-build] [profile.fast-build]
inherits = "dev" inherits = "dev"
opt-level = 1
debug = 0 debug = 0
strip = "debuginfo" strip = "debuginfo"