mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 22:33:06 +00:00
Use Jemalloc (#347)
This commit is contained in:
parent
168f572804
commit
9711127599
@ -27,6 +27,9 @@ serde = { version = "1.0", features = ["derive"] }
|
||||
serde_cbor = "0.11.1"
|
||||
static_assertions = "1.1.0"
|
||||
|
||||
[target.'cfg(not(target_env = "msvc"))'.dependencies]
|
||||
jemallocator = "0.3.2"
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.3.5"
|
||||
tynm = "0.1.6"
|
||||
|
||||
@ -13,3 +13,11 @@ pub mod iop;
|
||||
pub mod plonk;
|
||||
pub mod polynomial;
|
||||
pub mod util;
|
||||
|
||||
// Set up Jemalloc
|
||||
#[cfg(not(target_env = "msvc"))]
|
||||
use jemallocator::Jemalloc;
|
||||
|
||||
#[cfg(not(target_env = "msvc"))]
|
||||
#[global_allocator]
|
||||
static GLOBAL: Jemalloc = Jemalloc;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user