3 ms·
So basically, your use case is the extreme variant of the one described in Appel's "Garbage collection can be faster than stack allocation" paper.
by Joker_vD 5y ago
So basically, your use case is the extreme variant of the one described in Appel's "Garbage collection can be faster than stack allocation" paper.
- Const-me 5y agoNot sure it deserves to be called garbage collector, too simple. The approach is pretty close to arena allocation https://en.wikipedia.org/wiki/Region-based_memory_management#Implementation https://en.wikipedia.org/wiki/Region-based_memory_management... The only twist, with modern 64-bit processors there’s no need for linked lists or multiple blocks, can instead add new physical pages into pre-allocated address space.