From 82801e141ccb1c4ca6e02ddee35c33958adca719 Mon Sep 17 00:00:00 2001 From: steven-omaha <35634100+steven-omaha@users.noreply.github.com> 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]]