by rfgplk · 2mo ago · 0 comments
Writing allocators for domain-specific access patterns is easy. Writing a general-purpose high performing, stable allocator with bounded P99 latency is hard.
Give your friend, Dunning–Kruger, some better pills to keep him from speaking through you.
And that's rather hard, because a general purpose allocator makes all decisions based only on the requested size. This is a very simple interface and such a tool is worth having. But a custom allocator can both bake in a specific scenario and provide more nuanced interaction.
My first thought would be to use per thread pool allocators.
Should one even want a global, general purpose heap allocator for that? Seems like a crazy idea to even consider.