From e489195b02059bd5c65a19b9d7dd1bc520178129 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Mon, 21 Feb 2022 16:13:12 -0500 Subject: [PATCH] perf: enable lto - This cuts the binary size by 40%, and makes runtime 2 seconds faster --- Cargo.toml | 3 +++ README.md | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 08784fe..b23b137 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,2 +1,5 @@ +[profile.release] +lto = true + [workspace] members = ["src/*"] diff --git a/README.md b/README.md index ffda682..329258e 100644 --- a/README.md +++ b/README.md @@ -215,11 +215,11 @@ Please see: [CHANGELOG.md](./CHANGELOG.md). | Logical Cores | Seconds | | :-----------: | :-----: | - | 1 | 45 | - | 2 | 22 | - | 4 | 14 | + | 1 | 35 | + | 2 | 18 | + | 4 | 10 | | 8 | 10 | - | 16 | 11 | + | 16 | 10 | [^semantic-changes]: The methodology to claim this is: