From 379062cc1355f034dea595cb1ea14a95a176c8e6 Mon Sep 17 00:00:00 2001 From: Niklas Johansson Date: Tue, 21 Jan 2025 11:54:48 +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 e1fe1c6fdf..8889ebef66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -292,12 +292,12 @@ debug-assertions = false [profile.dev] opt-level = 3 -lto = "thin" +lto = "off" incremental = true [profile.test] opt-level = 3 -lto = "thin" +lto = "off" incremental = true debug = true debug-assertions = true