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

Bump Allocation #4

Closed
yorickpeterse opened this issue Apr 25, 2018 · 3 comments
Closed

Bump Allocation #4

yorickpeterse opened this issue Apr 25, 2018 · 3 comments

Comments

@yorickpeterse
Copy link

We need a chapter on allocating memory. I'm specifically thinking of bump allocation because:

  1. It's super easy to implement
  2. It delivers good performance
  3. It can support concurrent and atomic operations, though you may still need locking in certain cases (e.g. when requesting a new arena to allocate into)
@yorickpeterse
Copy link
Author

It's worth mentioning that this may require the use of the alloc crate, which currently still requires a nightly version of Rust. One can also use a Vec but that's a fairly limited approach and won't work if you want to store objects of different sizes (without using additional layers of indirection) or use a custom alignment.

@pliniker
Copy link
Member

Re: alloc - I opened #9 for going over options.

@pliniker
Copy link
Member

pliniker commented Jul 7, 2020

Basic single-threaded bump allocator ✔️

@pliniker pliniker closed this as completed Jul 7, 2020
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