I was surprised by how simple an allocator is
Table of Contents Introduction Recently I was looking at an issue on mimalloc, a "state-of-the-art" memory allocator developed by Microsoft. The issue was quite simple, developers wanted a way to preallocate a piece of memory and use it as mimalloc's heap. Seeing that mimalloc does not offer this feature, I thought: "how hard can it be to write a memory allocator to manage a preallocated region?". The answer to this question is: "given enough time, even a monkey with a typewriter can write