From dcc847f6e20d8f3e27a7c64da3c9a19162a9ccd7 Mon Sep 17 00:00:00 2001 From: Sanjaiyan Parthipan Date: Wed, 8 May 2024 13:31:59 +0530 Subject: [PATCH] perf: Adding compile time optimization for rust. --- pkl-html-highlighter/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkl-html-highlighter/Cargo.toml b/pkl-html-highlighter/Cargo.toml index 2a9948fd59..6497e065a5 100644 --- a/pkl-html-highlighter/Cargo.toml +++ b/pkl-html-highlighter/Cargo.toml @@ -12,6 +12,10 @@ clap = { version = "4.4.2", features = ["derive"] } [net] git-fetch-with-cli = true +[profile.release] +lto = true +codegen-units = 1 + [[bin]] name = "pkl-html-highlighter" path = "src/main.rs"