Skip to content

Commit

Permalink
perf: speedup ci by skip codegen-units = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed Feb 12, 2025
1 parent 03cc6cf commit 9fead81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,16 @@ incremental = true
panic = "abort"

[profile.release]
codegen-units = 1
debug = false
debug = false
# Performs “thin” LTO. This is similar to “fat”, but takes substantially less time to run while still achieving performance gains similar to “fat”.
lto = "thin"
opt-level = 3
panic = "abort"
strip = true

[profile.release-prod]
inherits = "release"
codegen-units = 1
inherits = "release"
# Performs “fat” LTO which attempts to perform optimizations across all crates within the dependency graph.
lto = "fat"

Expand Down

0 comments on commit 9fead81

Please sign in to comment.