Enable thin-LTO for release builds (#418)

Although the majority of av1an's time is spent
in third-party binaries, compiling with thin-LTO
does show up to a 10% improvement on scene detection
time. This will cause compilation to be slower.
However, thin-LTO has far less of a compilation time
impact than full LTO, while providing almost the same
speedups.
This commit is contained in:
Josh Holmer 2021-11-19 13:37:34 -05:00 committed by GitHub
parent 48e69be774
commit 65772ba4c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,3 +36,7 @@ members = ["av1an-core", "av1an-cli"]
[profile.dev.package.av-scenechange]
opt-level = 3
[profile.release]
lto = "thin"
codegen-units = 1