2 ms·
That's just a slab allocator. They're not what I'd call trivial, but still simple enough to be common in small projects and CS homework. I agree that an array i
by AlotOfReading 6y ago
That's just a slab allocator. They're not what I'd call trivial, but still simple enough to be common in small projects and CS homework. I agree that an array is still generally simpler though.
- pushrax 6y agoOnce you are implementing your own allocator you need to worry about fragmentation under many operations, which would be the majority of the complexity.