Skip to content

Commit

Permalink
add jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangxiecrypto committed Oct 31, 2024
1 parent 9ddaa67 commit ee2a156
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ serde = { version = "1.0", features = ["derive"] }
bincode = "1.3"
itertools = "0.13.0"
sha2 = { version = "0.10.7", features = ["asm"] }
jemallocator = "0.5.4"

criterion = "0.5"

Expand Down
1 change: 1 addition & 0 deletions zkp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ serde = { workspace = true }
itertools = { workspace = true }
bincode = { workspace = true }
rayon = { workspace = true }
jemallocator = { workspace = true }

[target.'cfg(all(unix, any(target_arch = "x86_64", target_arch = "x86", target_arch = "aarch64")))'.dependencies]
sha2 = { workspace = true, features = ["asm"] }
Expand Down
2 changes: 2 additions & 0 deletions zkp/examples/accumulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ fn complete_snark() {

assert!(res);
}
#[global_allocator]
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
fn main() {
complete_snark()
}

0 comments on commit ee2a156

Please sign in to comment.