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.
This commit is contained in:
Oliver Hamlet
2025-03-25 22:02:33 +00:00
parent 3b6752843a
commit 86063e437a
+8
View File
@@ -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"