From 1a3d41e6d42a48ea1f437dac6d3e04ad42d6dc12 Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Sat, 30 Nov 2019 11:29:07 -0500 Subject: [PATCH] Enable LTO for release builds --- Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3b895b3..a7a26a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,4 +13,10 @@ quickcheck_macros = "0.8" [dependencies.nalgebra] version = "0.19" -features = ["arbitrary"] \ No newline at end of file +features = ["arbitrary"] + + +[profile.release] +opt-level = 3 +lto = true +codegen-units = 1 \ No newline at end of file