Mimalloc

Last updated
mimalloc
Original author(s) Daan Leijen /
Microsoft Research
Developer(s) Microsoft
Initial releaseJuly 2019;5 years ago (2019-07)
Stable release
3.0.1 [1]   OOjs UI icon edit-ltr-progressive.svg / 16 March 2025
Repository github.com/microsoft/mimalloc
Written in C
Operating system Windows, FreeBSD, NetBSD, DragonFly BSD, macOS, Linux
Type Software library
License MIT License
Website microsoft.github.io/mimalloc/

mimalloc (pronounced "me-malloc") is a free and open-source compact general-purpose memory allocator developed by Microsoft [2] with focus on performance characteristics. The library is about 11000 lines of code and works as a drop-in replacement for malloc of the C standard library [3] and requires no additional code changes. [4] mimalloc was initially developed for the run-time systems of the Lean and Koka languages. Notable design aspects include free list sharding, eager page reset, first-class heaps. It can co-exist with other memory allocators linked to the same program. mimalloc is available on Windows, Mac OS X, Linux and *BSD. [5] The source code is licensed under MIT License and available on GitHub. [6]

Contents

See also

References

  1. "Release 3.0.1". 4 January 2025. Retrieved 26 January 2025.
  2. "Maruf Ali: Investigation of Memory Allocators" (PDF).
  3. "Microsoft releases optimized malloc() as open source - Slashdot". slashdot.org.
  4. "Analysis of mimalloc". Develop Paper. September 11, 2019.[ dead link ]
  5. "Google Translate". translate.google.com. 25 June 2019.
  6. "microsoft/mimalloc". July 5, 2020 via GitHub.

Further reading