From 87230bb59b2a70b6c361943d1394f42218b0040b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Korn=C3=A9l=20Csernai?= <749306+csko@users.noreply.github.com> Date: Tue, 9 May 2023 07:15:57 -0700 Subject: [PATCH] use LTO for release and benchmark builds (#1157) --- tokenizers/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tokenizers/Cargo.toml b/tokenizers/Cargo.toml index dfc04745..dec485b6 100644 --- a/tokenizers/Cargo.toml +++ b/tokenizers/Cargo.toml @@ -81,3 +81,6 @@ unstable_wasm = ["fancy-regex", "getrandom/js"] criterion = "0.4" tempfile = "3.1" assert_approx_eq = "1.1" + +[profile.release] +lto = "fat"