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

Add spaskalev/buddy_alloc #225

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add spaskalev/buddy_alloc #225

wants to merge 2 commits into from

Conversation

spaskalev
Copy link

I wrote a custom buddy allocator with predictable storage and runtime costs.

It improves upon the textbook buddy allocator (e.g. the one TAOCP) in several ways

  • Uses a optimal-fit strategy with a log complexity based on its tree depth. (not free lists)
  • Supports non-power-of-two arena sizes
  • Supports resizing arenas
  • Supports rellocating the allocator and arena, for persistent heaps
  • Metadata is external to the arena, making it safer from overwrites
  • Full line and branch test coverage

It has been out for a while and seen some use in games - I think it might get some more publicity here, new users and further development. Thanks!

@spaskalev
Copy link
Author

Hi team. Please consider merging this - I continue to support and actively develop buddy_alloc. Thanks!

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

Successfully merging this pull request may close these issues.

1 participant