Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,16 @@ debug = "full"
inherits = "release"

[profile.bench]
codegen-units = 16
# Benchmarks exist to attribute a change in measurement to a change in code, so they are built
# whole-program. With `codegen-units = 16` and no LTO, adding unrelated code to a crate reshuffles
# which functions share a codegen unit, which changes cross-unit inlining for functions whose
# source did not change. That reports as a regression in code the branch never touched.
#
# `profile.release` deliberately keeps LTO off, because Vortex's performance must not depend on a
# downstream crate enabling it. That argument is about shipped code and does not apply here.
codegen-units = 1
debug = "full"
lto = false
lto = true

[profile.samply]
inherits = "release"
Expand Down
Loading