snmalloc-rs

MSVC/MinGW/Linux/MacOS: travis ci

FreeBSD: Build Status

snmalloc-rs provides a wrapper for microsoft/snmalloc to make it usable as a global allocator for rust. snmalloc is a research allocator. Its key design features are:

Some old benchmark results are available in the snmalloc paper. Some recent benchmark results are listed at bench_suite. There are three features defined in this crate:

To use snmalloc-rs add it as a dependency:

```toml

Cargo.toml

[dependencies] snmalloc-rs = "0.2" ```

To set SnMalloc as the global allocator add this to your project:

```rust

[global_allocator]

static ALLOC: snmallocrs::SnMalloc = snmallocrs::SnMalloc; ```

For MinGW Users

mingw version is only tested on nightly branch with MSYS environment. We are using dynamic linking method. Hence, please make sure the following libs are in your PATH:

Notice: since version 0.2.12, we no longer require you to provide additional environment variables for mingw target.

For Androud Cross-Compilation

Changelog

0.2.12

0.2.11

0.2.10

for older versions, see CHANGELOG