diff options
author | k4lizen <k4lizen@proton.me> | 2024-11-29 13:25:29 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2024-11-29 13:27:13 +0000 |
commit | e2436d6f5aa47ce8da80c2ba0f59dfb9ffde08f3 (patch) | |
tree | e461ce183d8028251d35c3ef24934fcf191b6142 /sysdeps/unix/sysv/linux/dl-write.c | |
parent | a08d9a52f967531a77e1824c23b5368c6434a72d (diff) | |
download | glibc-e2436d6f5aa47ce8da80c2ba0f59dfb9ffde08f3.zip glibc-e2436d6f5aa47ce8da80c2ba0f59dfb9ffde08f3.tar.gz glibc-e2436d6f5aa47ce8da80c2ba0f59dfb9ffde08f3.tar.bz2 |
malloc: send freed small chunks to smallbin
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.
Authored-by: k4lizen <k4lizen@proton.me>
Signed-off-by: Aleksa Siriški <sir@tmina.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/dl-write.c')
0 files changed, 0 insertions, 0 deletions