3 ms·
Entirely this. It works so well that I've seen this in various utility libraries for decades.
by JohnFen 3y ago
Entirely this. It works so well that I've seen this in various utility libraries for decades.
- cnity 3y agoYeah. Most of my code these days works like this, to the point where almost all of my allocation happens roughly in my main entry-point. Or I use arena allocators and pass those into my utilities. But there's basically never a `realloc` or `malloc` call deep in my code anymore.