2 ms·
There are different strategies for handling perf problems of memory allocation - you can cache blocks of the same size in some linked list within the applicatio
by MichaelMoser123 10y ago
There are different strategies for handling perf problems of memory allocation - you can cache blocks of the same size in some linked list within the application (free list) or you can reconsider the allocator/allocation strategy. Both get the job done.
Preferance of the first solution does not make you a worse programmer.
- codr4life 10y agoWhat you're describing is essentially a pool, which could be thought of as a kind of allocator since it provides an allocation strategy. There's even one in the challenge that does just that. Nothing makes you a worse programmer except refusing to learn.