From 32c674889f396fd577a7e7a72b6470bb19531f82 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Mon, 10 May 2021 15:01:19 +0300 Subject: [PATCH] Increase number of optimizations on release builds. (#101) This allows us to produce a faster executable (which is useful in shells) at the expense of rarely spending more compilation time upon releasing a new version. I do this in all of my rust projects, perhaps because they are too small for compilation time to really matter. We should measure next time we release and see how that goes. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 31f6801..ca3df5b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,3 +56,8 @@ base64 = "0.13.0" humantime = "2.1.0" tabwriter = "1.2.1" crossbeam-channel = "0.5.1" + +[profile.release] +lto = "fat" +codegen-units = 1 +opt-level = 3