Memory Arenas
| Lesson overview |
Lesson overview
Topics covered: pool allocation, single free, arenas for short-lived objects.
Memory Arenas
Pool allocation pattern: allocate large block, allocate from it
Single free: free entire arena at once
Useful for: short-lived objects, parsing, recursion stack
Avoids fragmentation, faster than malloc/free per allocation
Article author: Arthur Isaev