[PATCH v4] malloc: send freed small chunks to smallbin
Florian Weimer
fweimer@redhat.com
Mon Nov 4 14:54:32 GMT 2024
* Carlos O'Donell:
> On 10/31/24 2:47 PM, k4lizen wrote:
>> Large chunks get added to the unsorted bin since
>> sorting them takes time, for small chunks the
>> benefit of adding them to the unsorted bin is
>> non-existant, actually hurting performance.
>>
>> Splitting and malloc_consolidate still add small
>> chunks to unsorted, but we can hint the compiler
>> that that is a relatively rare occurance.
>> Benchmarking shows this to be consistently good.
>>
>> Signed-off-by: k4lizen <k4lizen@proton.me>
>
> Please note that under DCO you must use your real name:
> https://sourceware.org/glibc/wiki/Contribution%20checklist
>
> It is one of the consequences of DCO, though pseudonyms can
> be used with copyright attribution via the FSF.
>
> May you please confirm your real name?
Alternatively, you can start the copyright assignment process with the
FSF. They will guard your identity. The available forms are linked
from here: <https://sourceware.org/glibc/wiki/CopyrightFSForDisclaim>
If in doubt, use the request-assign.future form.
Thanks,
Florian
More information about the Libc-alpha
mailing list