summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-04-27 14:34:41 +0200
committerrabite <rabite@posteo.de>2019-04-27 14:39:08 +0200
commit392e6c0128f1669d8e689d097ef8a29d00d00e08 (patch)
tree63d1c98f0fe686e8bb99a8076371e8ee590b2ad9
parent2974d744a68e3edec3ddc6b3a6c1db32eb80fa28 (diff)
enable lto and limit code generation units
This increases performance and generates a smaller binary. It makes compiling a bit slower, but the trade-off is worth it in the case of hunter.
-rw-r--r--Cargo.toml7
1 files changed, 4 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 995ed25..5908871 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -33,6 +33,7 @@ osstrtools = "0.1"
pathbuftools = "0.1"
-#[profile.release]
-#debug = true
-#lto = false
+# These options increase performance and generate a smaller binary
+[profile.release]
+lto = true
+codegen-units = 1