hatchmoment. scored by care · not by stars

object-pool

C89 object pool library for fast, allocation‑free reuse

It solves the problem of frequent dynamic allocations by pre‑allocating a fixed number of objects and reusing them via push/pop. The library is pure C89, with a tiny API and example programs, making it suitable for game engines, networking, or embedded systems where predictable performance matters. It avoids heap fragmentation and offers constant‑time operations, which many generic allocators lack. Its small footprint and clear code make it a handy tool for low‑level projects.

allocatorarenacc89data-structuresembeddedgame-developmentheap-managementlow-latencylow-levelmemory-managementmemory-poolnetworkingobject-poolperformancereal-timesystems-programmingzero-allocation
View on GitHub →

xyurt/object-pool