Skip to content

Commit

Permalink
feat: enable LTO
Browse files Browse the repository at this point in the history
Enable Link-Time Optimization (LTO) for Rust schedulers. It improves the
binary size and allows to a compiler perform more aggressive
optimizations.

More details in sched-ext#1010
  • Loading branch information
zamazan4ik committed Nov 29, 2024
1 parent 5b57cdf commit 59ad671
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,3 +13,6 @@ members = ["rust/scx_stats",
"scheds/rust/scx_layered",
"scheds/rust/scx_mitosis"]
resolver = "2"

[profile.release]
lto = true

0 comments on commit 59ad671

Please sign in to comment.