Skip to content

Commit b5f2059

Browse files
committed
Make: More optimizations in Rust builds
1 parent c492523 commit b5f2059

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ repository = "https://github.com/ashvardanian/fork_union"
1010
[lib]
1111
path = "fork_union.rs"
1212

13+
[profile.release]
14+
opt-level = 3 # Corresponds to -O3
15+
lto = true # Enables Link Time Optimization for further optimizations
16+
codegen-units = 1 # May increase compilation time but optimizes further
17+
rpath = false # On some systems, setting this to false can help with optimizations
18+
1319
[[example]]
1420
name = "nbody"
1521
path = "scripts/nbody.rs"

0 commit comments

Comments
 (0)