Commit 995e70f
committed
build: Add thin LTO to release builds
This commit enables "thin" link time optimization on release builds. Per
my local testing, compile times are roughly equivalent to compile times
with `lto=false`, but thin LTO improves performance by ~10% when it
comes to proxying and a few selected benchmarks I ran.
On my machine, a release build with thin LTO took about 6 minutes to
complete, and a release build with fat LTO took about 20 minutes to
complete. Fat LTO only exhibited about 1-2% better performance than thin
LTO, so it doesn't seem worth the increased compile times.
Release-Note-Core: Enabled thin link time optimization in release
builds, generally improving performance by about 10%
Change-Id: I4f0612ee5a53163d563131fb03a497bbdfd9f9ab
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/7216
Tested-by: Buildkite CI
Reviewed-by: Jason Brown <jason.b@readyset.io>1 parent aa7b4b2 commit 995e70f
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments