Skip to content

Commit

Permalink
Use LTO=thin when running a release version, even more minor speedups
Browse files Browse the repository at this point in the history
Linux
$ git rev-list --count master
796 733
Native:     Took 47.781309497s to parse linux
Native/LTO: Took 47.739586631s to parse linux

Emacs
$ git rev-list --count master
134 364
Native:     Took 3.554701135s to parse emacs
Native/LTO: Took 3.483706896s to parse emacs
  • Loading branch information
sondr3 committed Nov 9, 2018
1 parent cde1577 commit 22c851a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ license = "GPL-3.0-or-later"
name = "git-anger-management"
path = "src/bin.rs"

[profile.release]
lto = "thin"

[features]
fail-on-warnings = []

Expand Down

0 comments on commit 22c851a

Please sign in to comment.