E.g. "Give me something in the ballpark of 4 KiB; more is OK, but tell me how much".
It would allow the allocator to return a chunk it has handy, instead of cutting it to size and fragmenting things, only to be asked to make the chunk larger a few microseconds later.
It will save both on housekeeping and fragmentation handling if the caller knows that the chunk will likely need to grow.
It would allow the allocator to return a chunk it has handy, instead of cutting it to size and fragmenting things, only to be asked to make the chunk larger a few microseconds later.
It will save both on housekeeping and fragmentation handling if the caller knows that the chunk will likely need to grow.