diff --git a/.cargo/config.toml b/.cargo/config.toml index 1236d57a3..cc4946299 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -7,4 +7,4 @@ xclippy = [ # https://nnethercote.github.io/perf-book/build-configuration.html#cpu-specific-instructions [build] -rustflags = ["-C", "target-cpu=native"] \ No newline at end of file +rustflags = ["-C", "target-cpu=native"] diff --git a/Cargo.toml b/Cargo.toml index dbd8ef2ee..f68ce2359 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 }