From 392e6c0128f1669d8e689d097ef8a29d00d00e08 Mon Sep 17 00:00:00 2001 From: rabite Date: Sat, 27 Apr 2019 14:34:41 +0200 Subject: 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. --- Cargo.toml | 7 ++++--- 1 file 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 -- cgit v1.2.3