InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →
Top 6 C allocator Projects
-
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
> I would do exactly the dual: the chunk's size should be defined at pool creation, so that you can create multiple pools, each dedicated to one specific kind of object.
This is supported in my 'libpool' project. I thought I mentioned it in the article, but now I am not so sure.
https://github.com/8dcc/libpool/blob/main/src/libpool.h#L51
> Similarly, I don't like exposing pool_expand(): too much burden on the user. Expansion should be automatically triggered by pool_alloc() whenever the current pool is exhausted.
I feel like this shouldn't be too hard to do, but I actually did write a function for this in another project I am working on.
https://github.com/8dcc/sl/blob/9ddd84d75ffc3b0ba1373bc13bc6...
> This would also allow a much simpler pool_new() that just initializes its pointers to NULL, leaving it to the first invocation of pool_alloc() to actually do the first allocation.
I didn't think of this, but I rather keep the two functions separate, specially for readability in the article.
-
-
allocator
Customisable, thread-safe C11 memory allocator based off the K&R "storage allocator" (by a-p-jo)
-
Project mention: Show HN: I made a library for dynamic stack strings in C | news.ycombinator.com | 2024-06-25
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.
-
Project mention: Show HN: Yet another memory allocator – affordable safety | news.ycombinator.com | 2025-01-27
C allocator discussion
C allocator related posts
-
Show HN: I made a library for dynamic stack strings in C
-
Memory Allocators
-
buddy memory allocator - project update (2 years)
-
Rpmalloc – General Purpose Memory Allocator
-
Open-source MISRA-compliant projects
-
Rust Mimalloc v0.1.30 has just been released!
-
Reference Count, Don't Garbage Collect
-
A note from our sponsor - InfluxDB
www.influxdata.com | 16 May 2025
Index
What are some of the best open-source allocator projects in C? This list will help you:
# | Project | Stars |
---|---|---|
1 | buddy_alloc | 184 |
2 | libpool | 30 |
3 | Memory-Allocators | 25 |
4 | allocator | 13 |
5 | c-allocators | 5 |
6 | yalloc | 0 |