Switch to thin lto for faster compilation

Also, makes the bench and release profile match eachother so that
tests built in release mode don't need to recompile everything compared
to regular release builds.
This commit is contained in:
Brendan Hansknecht 2021-02-20 11:06:46 -08:00
parent 22b2ab499e
commit 7a6c2cb2bc

View file

@ -31,8 +31,10 @@ members = [
# Optimizations based on https://deterministic.space/high-performance-rust.html # Optimizations based on https://deterministic.space/high-performance-rust.html
[profile.release] [profile.release]
lto = "fat" lto = "thin"
codegen-units = 1 codegen-units = 1
# debug = true # enable when profiling # debug = true # enable when profiling
[profile.bench]
lto = "thin"
codegen-units = 1