Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: activate perf settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberb committed Apr 30, 2024
1 parent 4a28799 commit 403fb4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ xclippy = [

# https://nnethercote.github.io/perf-book/build-configuration.html#cpu-specific-instructions
[build]
rustflags = ["-C", "target-cpu=native"]
rustflags = ["-C", "target-cpu=native"]
15 changes: 11 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ missing_docs = "allow"
# Warn
deprecated-in-future = "warn"

# Use this for performance
#[profile.release]
#strip = true
#codegen-units = 1 # https://nnethercote.github.io/perf-book/build-configuration.html#codegen-units
#lto = "fat" # https://nnethercote.github.io/perf-book/build-configuration.html#link-time-optimization
#debug = false

# Use this for perf analysis
[profile.release]
strip = true
codegen-units = 1 # https://nnethercote.github.io/perf-book/build-configuration.html#codegen-units
lto = "fat" # https://nnethercote.github.io/perf-book/build-configuration.html#link-time-optimization
debug = true # So we can un `perf` on the Rust binary
strip = false
debug = true
lto = false

[workspace.dependencies]
topos-core = { path = "./crates/topos-core", default-features = false }
Expand Down

0 comments on commit 403fb4b

Please sign in to comment.