From a1918e18eb0554db35089f95da066722e66b6000 Mon Sep 17 00:00:00 2001 From: Niklas Johansson Date: Mon, 18 Nov 2024 18:11:38 +0100 Subject: [PATCH] perf: Change link-time optimization in dev and test This change improves the development cycle in both dev and test, when running the same command multiple times in a row. On my machine I can see improvements from minutes to seconds. For example when running `cargo run` and `cargo test`. Co-authored-by: Paul Dann --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 99760f2d5f..665da40926 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -145,12 +145,12 @@ debug-assertions = false [profile.dev] opt-level = 2 -lto = "thin" +lto = "off" incremental = true [profile.test] opt-level = 2 -lto = "thin" +lto = "off" incremental = true debug = true debug-assertions = true