MicroAlloc
bogdanthegeek.github.io·2h

TLDR;#

You can find the project repository here.

What? How? Why?#

A few Christmases ago, I was browsing the source code for the esp-idf heap allocator1 and thought:

This is quite interesting, I should write my own allocator

After a bit of looking around, I discovered that general purpose heap allocators are one of those problems that has no perfect solution (which is the kind of problem I really enjoy). It’s all about trade-offs. You can optimise for speed (which seems very much like the wrong thing to optimise for), allocation overhead, memory fragmentation, or all of them at the same time.

It took …

Similar Posts

Loading similar posts...