6.3 Fixed Allocators
For frequently allocated objects (terminal cells, etc.): - Use pool allocators for fixed-size objects - Reduce fragmentation - Improve performance
/* Cell pool allocator */
typedef struct {
d3tui_cell_t *cells;
size_t count;
size_t capacity;
} d3tui_cell_pool_t;
d3tui_cell_t *d3tui_cell_pool_alloc(d3tui_cell_pool_t *pool);
void d3tui_cell_pool_free(d3tui_cell_pool_t *pool, d3tui_cell_t *cell);