From 2b9e82e5a1c5627e40c56d495a3800bcbffd3020 Mon Sep 17 00:00:00 2001 From: timeshifter Date: Sat, 14 Jan 2023 18:19:53 +0100 Subject: [PATCH] reduce compile time disabling LTO and optimizing for size cuts compile time almost in half, but increases the binary size from 2.1 to 2.5 MB. this tradeoff is worth it. performance is unaffected --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6dc8388..2d07d34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,8 +17,8 @@ serde = "*" pacdef_macro = {path = "pacdef_macro/"} [profile.release] -lto = "fat" -codegen-units = 1 +lto = "off" +opt-level = "z" strip = true [[bin]]