Skip to content

Commit d3068e7

Browse files
authored
refactor: use mimalloc as global allocator (#4943)
1 parent 71287a8 commit d3068e7

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Cargo.lock

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/edr_napi/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ parking_lot = { version = "0.12.1", default-features = false }
2929
lazy_static = { version = "1.4.0", features = [] }
3030
rand = { version = "0.8.4", optional = true }
3131
serde = { version = "1.0.189", features = ["derive"] }
32+
mimalloc = { version = "0.1.39", default-features = false }
3233

3334
[target.x86_64-unknown-linux-gnu.dependencies]
3435
openssl-sys = { version = "0.9.93", features = ["vendored"] }

crates/edr_napi/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
//! NAPI bindings for the EDR EVM
44
5+
#[global_allocator]
6+
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
7+
58
mod account;
69
mod block;
710
mod call_override;

0 commit comments

Comments
 (0)