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 Jan 3, 2025
1 parent 6e2d8ad commit 7300c7c
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 7300c7c

Please sign in to comment.