Skip to content

Commit

Permalink
perf(bin): compile binary as a single code unit and use fat LTO (#191)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alexpasmantier authored Dec 30, 2024
1 parent 53afed2 commit b552657
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ debug = true


[profile.release]
lto = "thin"
codegen-units = 1
lto = "fat"

[profile.deb]
inherits = "release"
Expand Down

0 comments on commit b552657

Please sign in to comment.