chore: Enable full LTO (#2548)

Per conversation with Antonio, I've suggested enabling full LTO; right
now we use a crate-local ThinLTO, which does not inline function calls
across crates.

| Configuration    | Current main (788f97e) | Thin LTO  | Full LTO  |
|------------------|------------------------|-----------|-----------|
| Size in bytes    | 158806721              | 155868753 | 111115553 |
| % of `main` size | 100%                   | 98.14%    | 69.96%    |
| Size in bytes (no debug info) | 129186657 | 127942929 | 108281345 |
This commit is contained in:
Piotr Osiewicz 2023-06-06 21:50:08 +02:00 committed by GitHub
parent 17560cc5b0
commit 572c59eec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,3 +116,4 @@ split-debuginfo = "unpacked"
[profile.release] [profile.release]
debug = true debug = true
lto = "thin"