a tiny heap allocation library
Find a file
2025-05-23 23:47:12 +02:00
.idea bugfixes, optimizations and heavy heap corruption checking mode (feat) 2025-03-07 11:27:28 +01:00
.gitignore half working allocator, test 1 passes but test 2 doesn't yet 2025-01-24 00:39:37 +01:00
main.c Cleaned removed unnecessary code 2025-05-23 23:47:12 +02:00
README.md Cleaned removed unnecessary code 2025-05-23 23:47:12 +02:00

About

This project is a tiny heap allocator library for learning purposes. I primarily wanted to try coming up with a decently efficient allocation algorithm.

I ended up with an allocator that reaches similar speeds as glibc (generally slightly slower, but realloc appears to be faster than glibc, I suspect because glibc makes alignment guarantees that I don't make?). My allocator likely has more metadata overhead though.

Building

gcc main.c -o a.out

Running tests

gcc main.c -o a.out && ./a.out

License

MIT License