Commit 4f3d5e51 authored by Thomas Daede's avatar Thomas Daede Committed by Luca Barbato

Enable LTO on release and bench builds.

This shows a pretty nice improvement of ~15% on encode block
benchmarks.
parent 162f7243
......@@ -69,9 +69,11 @@ opt-level = 2
codegen-units = 1 # if > 1 enables parallel code generation which improves
# compile times, but prevents some optimizations.
# Passes `-C codegen-units`. Ignored when `lto = true`.
lto = true
[profile.bench]
codegen-units = 1
lto = true
[workspace]
members = ["ivf"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment