From df246e699d2a18873da2b2c47b432d07b17d8cca Mon Sep 17 00:00:00 2001 From: Tzu Gwo Date: Thu, 14 Nov 2024 15:02:39 +0800 Subject: [PATCH] chore: open lto and optimization in release profile (#2028) --- rust/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index a7f5d9ddd..8c4b56fd1 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -24,3 +24,7 @@ futures-util = "0.3" serde_json = "1.0" pyo3 = { version = "0.22.5", features = ["extension-module"] } tokenizers = { version = "0.20.3", features = ["http"] } + +[profile.release] +lto = "thin" +codegen-units = 1