Skip to content

Commit

Permalink
perf(lto): Enable link-time optimization
Browse files Browse the repository at this point in the history
This change will allow to do better PGO, as well as reduces binary size quite a bit. e.g. bonfire - 30m vs 23m
  • Loading branch information
Drevoed committed Oct 13, 2024
1 parent 397b987 commit 187be47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ target

.vercel
.DS_Store

.idea
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ redis22 = { package = "redis", version = "0.22.3", git = "https://github.com/rev
redis23 = { package = "redis", version = "0.23.1", git = "https://github.com/revoltchat/redis-rs", rev = "f8ca28ab85da59d2ccde526b4d2fb390eff5a5f9" }
# authifier = { package = "authifier", version = "1.0.8", path = "../authifier/crates/authifier" }
# rocket_authifier = { package = "rocket_authifier", version = "1.0.8", path = "../authifier/crates/rocket_authifier" }

[profile.release]
lto = true

0 comments on commit 187be47

Please sign in to comment.