From 17e7e03423d408491040d9174d0517a7d55211f7 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sun, 26 Jan 2025 10:28:23 +0200 Subject: [PATCH] Revert "cargo: Disable LTO.." This reverts commit 4943217045beb468897d1af0014472a9fe22d11b to get 5% of performance back. Before: ``` limbo/Execute prepared statement: 'SELECT 1' time: [111.45 ns 111.52 ns 111.61 ns] thrpt: [8.9594 Melem/s 8.9667 Melem/s 8.9727 Melem/s] Found 8 outliers among 100 measurements (8.00%) 2 (2.00%) low mild 2 (2.00%) high mild 4 (4.00%) high severe ``` ``` limbo/Execute prepared statement: 'SELECT 1' time: [106.22 ns 106.48 ns 106.85 ns] thrpt: [9.3587 Melem/s 9.3911 Melem/s 9.4142 Melem/s] change: time: [-4.8335% -4.6750% -4.5222%] (p = 0.00 < 0.05) thrpt: [+4.7364% +4.9043% +5.0790%] Performance has improved. ``` --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 570e5b638..0ffbdf6ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,7 +58,7 @@ github-attestations = true debug = "line-tables-only" codegen-units = 1 panic = "abort" -lto = "off" +lto = true [profile.bench-profile] inherits = "release" @@ -66,3 +66,4 @@ debug = true [profile.dist] inherits = "release" +lto = "thin"