mimalloc icon indicating copy to clipboard operation
mimalloc copied to clipboard

Evaluate an idea about PGO for optimizing heap allocations with Mimalloc

Open zamazan4ik opened this issue 4 months ago • 0 comments

Hi!

A few days ago, I was watching a talk about TCMalloc's work on trying to optimize heap allocations based on runtime gathered statistics (like PGO). The materials are located here (slides are here). I recommend to read all slides but the PGO part starts from page 36.

Since mimalloc is a performance-oriented allocator, I wanted to suggest an idea to mimalloc authors to evaluate a similar idea for mimalloc. I don't have enough knowledge about mimalloc's internals, but I guess if the idea kinda works/promising for TCMalloc - it could be useful for other allocators too.

Thank you.

zamazan4ik avatar Aug 17 '25 20:08 zamazan4ik