From 86063e437a548fd36de8f51f76c73edf33310a2e Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 17 Mar 2025 21:31:59 +0000 Subject: [PATCH] Tweak Cargo profiles Include limited debug info in release builds to help with profiling. Also add another profile that's equivalent to CMake's RelWithDebInfo. Testing suggests that although it uses a lower opt-level, it might actually perform better (at least on Windows), though the differences are only ~ 100 ms in startup and sorting times. --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1b719d6e..4b79a434 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,3 +33,11 @@ members = ["cxx", "ffi-errors", "pyo3"] esplugin = "6.1.1" libloadorder = { git = "https://github.com/Ortham/libloadorder.git", rev = "6245dbc6824c4751daef5ab01dfe7b9497f5446f" } loot-condition-interpreter = { git = "https://github.com/loot/loot-condition-interpreter.git", rev = "f7d9947fa434037743ce81e2d409184ec0bfb693" } + +[profile.release] +debug = "limited" + +[profile.rel-with-deb-info] +inherits = "release" +opt-level = 2 +debug = "limited"