1. Home
  2. ›
  3. Browse
  4. ›
  5. mimalloc

mimalloc

v3.6.1#0Latest

Compact general purpose allocator with excellent performance

Install

Run the following Vcpkg command to install the port.

vcpkg install mimalloc

Usage

mimalloc provides CMake targets:

find_package(mimalloc CONFIG REQUIRED)

target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:mimalloc-static>,mimalloc-static,mimalloc>)

On Windows with dynamic linkage, call a mimalloc API function (e.g.

`mi_version()`) to ensure the allocator DLL (`mimalloc.dll`, or

`mimalloc-secure.dll` with the secure feature; `-debug` variants in Debug)

is loaded. Keep the matching `mimalloc-redirect*.dll` alongside it.

See https://github.com/microsoft/mimalloc/blob/dev3/bin/readme.md

Features

Dependencies

See source

Version

v3.6.1#0

Publication

Supports

!uwp

GitHub

microsoft/mimalloc

Homepage

github.com/microsoft/mimalloc

Subtree

2ec0f1747d

License

MIT

Definition

Manifest