mosra/corrade

V8::Zone Allocator

Mehran7kl opened this issue · 1 comments

Please implement this allocator.
https://github.com/v8/v8/blob/main/src/zone/zone.h
That header file contains enough description for it.
Zone is a useful allocator for performant memory management. Acts like an stack on heap.
I wonder why there's no implementation for it in STL.

mosra commented

Hi,

this looks like a good candidate for another Allocator, thanks!

I plan to expand the allocator interfaces together with allowing them to be passed to library functions (what Zig has, so it's possible to, for example, override the allocator used internally for JSON parsing), and this one seems like it could have quite a few use cases.