Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V8::Zone Allocator #169

Open
Mehran7kl opened this issue Apr 5, 2023 · 1 comment
Open

V8::Zone Allocator #169

Mehran7kl opened this issue Apr 5, 2023 · 1 comment

Comments

@Mehran7kl
Copy link

Mehran7kl commented Apr 5, 2023

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
Copy link
Owner

mosra commented Apr 10, 2023

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.

@Mehran7kl Mehran7kl changed the title V8::Zone container V8::Zone Allocator Apr 16, 2023
@mosra mosra moved this to TODO in Corrade / Containers Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants