summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmer Katz <omer.drow@gmail.com>2021-05-10 15:01:19 +0300
committerGitHub <noreply@github.com>2021-05-10 12:01:19 +0000
commit32c674889f396fd577a7e7a72b6470bb19531f82 (patch)
tree7b168f134b69b01649b2de21ca60b4456a8257cf
parentc02934d184cca5d24a628d2e5ec601e12db2a630 (diff)
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.
-rw-r--r--Cargo.toml5
1 files changed, 5 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 31f6801f..ca3df5b4 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