← Back to context

Comment by senderista

24 days ago

But sized deallocation gives the allocator implementation more freedom to optimize, not less. More information from clients = more optimization opportunities for the implementation. I don't understand how you can claim the opposite is true.

Source: I have implemented allocators.

I don't see the point

If sized parameter helps optimization, why allocator just not put it in the header block already ?