mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 23:30:44 +00:00
Release and bench builds used Cargo's defaults: no cross-crate LTO and 16 codegen units. Fat LTO with a single codegen unit lets the interpreter and DBT hot paths inline across crates. On Apple M5, dbt_bench medians over five alternating rounds of 101 samples drop from 903 to 845 us for the interpreter (-6%) and from 1.155 to 1.046 ms for cold DBT (-9%, faster in all five rounds); warm DBT is unchanged. The xenora binary shrinks from 2.73 to 2.11 MB. A clean release build of the workspace takes 14.0 s instead of 5.9 s. Debug and test builds keep the dev profile and are unaffected. Signed-off-by: Bartosz Szczepański <bartosz.szczepanski@hotmail.com>
20 lines
534 B
TOML
20 lines
534 B
TOML
[workspace]
|
|
members = ["crates/*", "tests/validation", "benchmarks"]
|
|
resolver = "3"
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "GPL-3.0-or-later"
|
|
rust-version = "1.100"
|
|
|
|
[workspace.lints.rust]
|
|
unsafe_op_in_unsafe_fn = "deny"
|
|
|
|
# Whole-program optimization for release and bench builds (#116). On an Apple M5 the
|
|
# interpreter ran about 6 % and cold DBT about 9 % faster in `dbt_bench`, at the cost of
|
|
# slower release builds. Debug and test builds are unaffected.
|
|
[profile.release]
|
|
lto = "fat"
|
|
codegen-units = 1
|