From 61c67bebcbd21d7900e6ce511107287a078cb29c Mon Sep 17 00:00:00 2001 From: konsti Date: Tue, 28 Oct 2025 13:31:18 +0100 Subject: [PATCH] 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. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 7b7749f01..46e39b582 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -314,6 +314,7 @@ lto = false [profile.fast-build] inherits = "dev" +opt-level = 1 debug = 0 strip = "debuginfo"