From fd0c77ee6b309ffd6457edb9905495f8aa09ef48 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 4 Aug 2024 15:02:45 +0900 Subject: [PATCH] Enable Link Time Optimization (LTO) and set codegen-units to 1 --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 6584206..43fb5ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,3 +13,7 @@ crate-type = ["cdylib", "staticlib"] tiktoken-rs = "0.5" log = "0.4" simple_logger = "4.3" + +[profile.release] +lto = true +codegen-units = 1