From 242a961e2641007f618e7788e1906bbf20161673 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 d4a8aa9c8..5dd738fd7 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