From b98f0783ff176ed8211247ff2ae5332e7e6c9ea7 Mon Sep 17 00:00:00 2001 From: Benjamin Fox Date: Fri, 12 Oct 2018 16:26:27 +0300 Subject: [PATCH] Enable link-time optimization in release builds This gives a significant improvement to runtime performance, at the cost of somewhat worse compile times. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d4a8aa9..5dd738f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,3 +53,7 @@ libc = "0.2" diff = "0.1" tempdir = "0.3" filetime = "0.2.1" + +[profile.release] +lto = true +codegen-units = 1