c-allocators
memory-allocators
c-allocators | memory-allocators | |
---|---|---|
2 | 2 | |
5 | 1,834 | |
- | 0.0% | |
0.0 | 0.0 | |
over 4 years ago | about 1 year ago | |
C | C++ | |
The Unlicense | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
c-allocators
-
Show HN: I made a library for dynamic stack strings in C
I've been playing with this arena bump allocator.
https://github.com/gilzoide/c-allocators
I've been using it with an event driven code where after an event is fired off and returns the handler just hard resets the arena.
You could probably use something like that as well.
Either way I support not mixing manual memory management with business logic.
- Single-file Stack and Double Ended Stack Allocators in C
memory-allocators
-
Books to better understand memory allocation.
Read up on Custom Allocator Strategies GitHub - mtrebi/memory-allocators: Custom memory allocators in C++ to improve the performance of dynamic memory allocation
- A nice collection of C++ based memory Allocators with detailed documentation
What are some alternatives?
allocator - Customisable, thread-safe C11 memory allocator based off the K&R "storage allocator"
Memory-Allocators - A set of custom memory allocators
mojoAL - An SDL3-based implementation of OpenAL in a single C file.
Hoard - The Hoard Memory Allocator: A Fast, Scalable, and Memory-efficient Malloc for Linux, Windows, and Mac.
memory - STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.