-
Notifications
You must be signed in to change notification settings - Fork 12
/
Cargo.toml
30 lines (23 loc) · 827 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[workspace]
members = [
"fantoch",
"fantoch_ps",
"fantoch_bote",
"fantoch_exp",
"fantoch_plot",
# "fantoch_mc",
]
[profile.release]
# Enable link-time optimization, eliminates more code and inlines across crate boundaries.
# "true" is the same as "fat"
lto = true
# codegen-units of 1 gives best optimization, but disables parallel building.
codegen-units = 1
# Includes debug information in release builds necessary for profiling.
# This does not slow down the executable.
debug = true
# The default optimization level is 3 for release mode builds.
opt-level = 3
# Rust by default uses stack unwinding, which costs performance. Disabling that should reduce code size and improve cache usage.
panic = "abort"
# TODO maybe also use a different allocator: https://deterministic.space/high-performance-rust.html