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.
This commit is contained in:
rabite 2019-04-27 14:34:41 +02:00
parent 2974d744a6
commit 392e6c0128
1 changed files with 4 additions and 3 deletions

View File

@ -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