C++ std::pmr::memory_resource implementations for various allocators.
The tlsf_memory_resource is a real-time safe memory allocator powered by the Two-Level Segregated Fit (TLSF) algorithm. It provides
| Type | Backend | Notes |
|---|---|---|
tlsf_memory_resource |
tlsf | Real-time safe, |
mimalloc_memory_resource |
mimalloc | Backed by a purely-local mi_heap_t. Requires mimalloc v3. |
#include <nova/pmr/tlsf_memory_resource.hpp>
// Utilize a real-time safe static array of 64KB backing the TLSF pool
nova::pmr::static_tlsf_memory_resource<65536> mr;
std::pmr::vector<int> v({1, 2, 3}, &mr);- C++20 (GCC 12+, Clang 20+, MSVC 2022+)
cmake -B build
cmake --build build
ctest --test-dir buildMIT — see LICENSE