We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mimalloc
1 parent 151672d commit 9e562dfCopy full SHA for 9e562df
Cargo.toml
@@ -13,6 +13,7 @@ name = "libipld"
13
crate-type = ["rlib", "cdylib"]
14
15
[dependencies]
16
+mimalloc = { version = "*", features = ["v3"] }
17
pyo3 = { version = "0.27.1", features = ["generate-import-lib", "anyhow"] }
18
python3-dll-a = "0.2.14"
19
anyhow = "1.0.100"
src/lib.rs
@@ -1,3 +1,8 @@
1
+use mimalloc::MiMalloc;
2
+
3
+#[global_allocator]
4
+static GLOBAL: MiMalloc = MiMalloc;
5
6
use std::io::{self, Write};
7
8
use anyhow::{anyhow, Result};
0 commit comments