From 6a5a31bcfcb00f0a5b6303e00b5d25b19e648cc6 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 3636aa3fce..a948fe4d86 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -150,12 +150,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