From b6b18427a5fc9b5b7540cf6d0843afd5cf7f9b56 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 16 Apr 2026 08:47:02 +0000 Subject: [PATCH] use optimization level 3 and thin LTO for release builds (#1405) Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/1405 Co-authored-by: Alex Auvolat Co-committed-by: Alex Auvolat --- Cargo.toml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c293e004..df4005a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -146,12 +146,8 @@ aws-smithy-runtime = { version = "1.8", default-features = false, features = ["t aws-sdk-config = { version = "1.62", default-features = false } aws-sdk-s3 = { version = "1.79", default-features = false, features = ["rt-tokio"] } -[profile.dev] -#lto = "thin" # disabled for now, adds 2-4 min to each CI build -lto = "off" - [profile.release] -lto = true -codegen-units = 1 -opt-level = "s" -strip = true +lto = "thin" +codegen-units = 16 +opt-level = 3 +strip = "debuginfo"