From 42a7f63f8296026984dec5f0cba95ec355eab453 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Mon, 13 May 2024 18:08:32 +0300 Subject: [PATCH] add some additional perf features for reth dep --- bin/mev/Cargo.toml | 2 +- nix/mev-rs.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mev/Cargo.toml b/bin/mev/Cargo.toml index 6fd39cff..2a18acb5 100644 --- a/bin/mev/Cargo.toml +++ b/bin/mev/Cargo.toml @@ -35,4 +35,4 @@ clap = { workspace = true, features = ["derive", "env"] } eyre = { workspace = true } ethereum-consensus = { workspace = true } -reth = { workspace = true, optional = true } +reth = { workspace = true, optional = true, features = ["jemalloc"] } diff --git a/nix/mev-rs.nix b/nix/mev-rs.nix index f989de80..67cac2a5 100644 --- a/nix/mev-rs.nix +++ b/nix/mev-rs.nix @@ -6,6 +6,7 @@ let pname = "mev-rs"; src = crane.cleanCargoSource (crane.path ../.); CARGO_PROFILE = "maxperf"; + RUSTFLAGS = "-C target-cpu=native"; cargoExtraArgs = "--locked ${feature-set}"; buildInputs = lib.optionals pkgs.stdenv.isLinux [ openssl