Skip to content

Commit

Permalink
chore(cli): use reth_cli_util allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Oct 7, 2024
1 parent fa3f2e7 commit 50255ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/alphanet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ default = ["jemalloc"]

asm-keccak = ["reth-optimism-cli/asm-keccak"]

jemalloc = ["dep:tikv-jemallocator"]
jemalloc = ["dep:tikv-jemallocator", "reth-cli-util/jemalloc"]
jemalloc-prof = ["jemalloc", "tikv-jemallocator?/profiling"]

min-error-logs = ["tracing/release_max_level_error"]
Expand Down
5 changes: 1 addition & 4 deletions bin/alphanet/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ use reth_optimism_node::{args::RollupArgs, node::OptimismAddOns};
use reth_optimism_rpc::sequencer::SequencerClient;
use reth_provider::providers::BlockchainProvider2;

// We use jemalloc for performance reasons.
#[cfg(all(feature = "jemalloc", unix))]
#[doc(hidden)]
#[global_allocator]
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
static ALLOC: reth_cli_util::allocator::Allocator = reth_cli_util::allocator::new_allocator();

#[doc(hidden)]
fn main() {
Expand Down

0 comments on commit 50255ce

Please sign in to comment.