From d5ccf61a4fe0b0fca45807d996d09308c604abc5 Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Tue, 9 Jan 2024 13:47:25 +0900 Subject: [PATCH] feat: switch from full/fat to thin LTO This slightly increases binary size, but provides much better compile speed in release mode. Overall performance should not decrease a lot and if needed later, full/fat LTO can be turned back on again. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e65a330..311d1c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,5 +40,5 @@ syn = "2.0.48" thiserror = "1.0.56" [profile.release] -lto = true +lto = "thin" strip = true