1. Home
  2. Browse
  3. snmalloc

snmalloc

v0.7.4#0Latest

A high-performance, message passing based allocator

Install

Run the following Vcpkg command to install the port.

vcpkg install snmalloc

Usage

snmalloc provides CMake integration via:

find_package(snmalloc CONFIG REQUIRED)
target_link_libraries(<your-target> PRIVATE snmalloc::snmalloc)

If installed with the "static-shim" feature, a compiled static library is also

available that replaces malloc/free with a "sn_" prefix (e.g. sn_malloc, sn_free):

target_link_libraries(<your-target> PRIVATE snmalloc::snmallocshim-static)

On non-Windows, the "static-shim" feature also installs shared library shims

(snmalloc::snmallocshim, snmalloc::snmallocshim-checks, snmalloc::snmalloc-minimal)

that can be used for LD_PRELOAD-based allocator replacement.

Features

Dependencies

See source

Version

v0.7.4#0

Publication

Supports

All

GitHub

microsoft/snmalloc

Homepage

github.com/microsoft/snmalloc

Subtree

de311602c8

License

MIT

Definition

Manifest