Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.22 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.22 KB

memory-pools

Build Status codecov

Introduction

Memory pool experiments, so far one of the ideas is implemented.

LiberalPool

Aims to be almost as good as this Fast Efficient Fixed-Size Memory Pool but at the same time allowing double free errors without pool metadata corruption, hence the liberal prefix. This comes at a cost of roughly 1 bit per block.

Usage

Just #include liberal-pool.h into your project.

Pool capacity can be set during compilation (StaticLiberalPool) or in run time (LiberalPool).

Build & run tests

mkdir -p build && cd build && cmake .. && make -j && make test

Remember to git submodule update --init --recursive after cloning

Platform

So far tried GCC on Ubuntu16.04 and Arch.