Skip to content

Commit

Permalink
Enable Link Time Optimization (LTO) and set codegen-units to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Aug 4, 2024
1 parent 92ebd30 commit fd0c77e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ crate-type = ["cdylib", "staticlib"]
tiktoken-rs = "0.5"
log = "0.4"
simple_logger = "4.3"

[profile.release]
lto = true
codegen-units = 1

0 comments on commit fd0c77e

Please sign in to comment.