From 62f376dd7098e11ad89168879be132979a8350dc 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e1fe1c6fdf..6cba91e842 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -292,7 +292,7 @@ debug-assertions = false [profile.dev] opt-level = 3 -lto = "thin" +lto = "off" incremental = true [profile.test]