Skip to content

Commit

Permalink
Use jemalloc
Browse files Browse the repository at this point in the history
Following #1114
  • Loading branch information
romanz committed Nov 18, 2024
1 parent 7de627e commit 8135daf
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.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ configure_me = "0.4"
crossbeam-channel = "0.5"
dirs-next = "2.0"
env_logger = "0.10"
jemallocator = "0.5"
log = "0.4"
parking_lot = "0.12"
prometheus = { version = "0.13", optional = true }
Expand Down
5 changes: 5 additions & 0 deletions src/bin/electrs.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
use anyhow::Result;

use jemallocator::Jemalloc;

#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;

fn main() -> Result<()> {
electrs::run()
}

0 comments on commit 8135daf

Please sign in to comment.