Skip to content

Commit

Permalink
feat(voyager): use jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Oct 20, 2023
1 parent b0205c8 commit 4207d09
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions voyager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ crossbeam-queue = "0.3.8"
derive_more = "0.99.17"
console-subscriber = "0.2.0"

tikv-jemallocator = "0.5"

[features]
eth-mainnet = [ "unionlabs/eth-mainnet" ]
4 changes: 4 additions & 0 deletions voyager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ use chain_utils::{evm::Evm, union::Union};
use clap::Parser;
use contracts::ucs01_relay::{LocalToken, UCS01Relay};
use sqlx::PgPool;
use tikv_jemallocator::Jemalloc;
use unionlabs::ethereum_consts_traits::Mainnet;

#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;

use crate::{
chain::AnyChain,
cli::{any_state_proof_to_json, AppArgs, Command, QueryCmd},
Expand Down

0 comments on commit 4207d09

Please sign in to comment.