perf(bin): compile binary as a single code unit and use fat LTO (#191)

Fixes #185 

> Release + codegen-units = 1: 11 Mib
Release + Thin LTO (current default): 14 Mib
Release + Fat LTO: 11 Mib
Release + codegen-units = 1 + Fat LTO: 9.7 Mib
Release + codegen-units = 1 + Thin LTO: 11 Mib
This commit is contained in:
Alex Pasmantier 2024-12-31 00:46:13 +01:00 committed by GitHub
parent 53afed28ee
commit b552657926
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,8 @@ debug = true
[profile.release]
lto = "thin"
codegen-units = 1
lto = "fat"
[profile.deb]
inherits = "release"