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

Investigate (optionally) allocating initial chunks in a bump arena on the stack #104

Open
fitzgen opened this issue Apr 7, 2021 · 2 comments

Comments

@fitzgen
Copy link
Owner

fitzgen commented Apr 7, 2021

We could use const generics to control the size, perhaps.

This means that the initial N bytes of allocation wouldn't need to hit the global allocator.

cc @cfallin

@i404788
Copy link

i404788 commented Jun 26, 2023

Is this something that is still under consideration?

It would quite cool for embedded, since you'd be able to do 'dynamic' allocations on the stack without the need for a full allocator.

@fitzgen
Copy link
Owner Author

fitzgen commented Jun 26, 2023

It would be a breaking change, at least as initially formulated, so won't happen until the Allocator trait is stable in std at the very least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants