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.
1 parent 084ad96 commit ac070f8Copy full SHA for ac070f8
README.md
@@ -0,0 +1,19 @@
1
+A drop-in global allocator wrapper around the [mimalloc](https://github.com/microsoft/mimalloc) allocator.
2
+Mimalloc is a general purpose, performance oriented allocator built by Microsoft.
3
+
4
+## Usage
5
+```rust
6
+use mimalloc::MiMalloc;
7
+#[global_allocator]
8
+static GLOBAL: MiMalloc = MiMalloc;
9
+```
10
11
+## Usage without secure mode
12
+By default this library builds mimalloc in safe-mode. This means that
13
+heap allocations are encrypted, but this results in a 3% increase in overhead.
14
15
+In `Cargo.toml`:
16
17
+[dependencies]
18
+mimalloc = { version = "*", features = ["no_secure"] }
19
0 commit comments