diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-03-20 20:04:14 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-03-28 15:31:34 +0000 |
commit | b0897944cc3081e019b39981790051f7ee127406 (patch) | |
tree | 4fc1afc8809618f6488afad30190c9a72ca8a449 /sysdeps/unix/sysv/linux/arc/ldsodefs.h | |
parent | 0a8e7ac95c69499959151f29c65fc112f09d3973 (diff) | |
download | glibc-master.zip glibc-master.tar.gz glibc-master.tar.bz2 |
Improve performance of __libc_malloc by splitting it into 2 parts: first handle
the tcache fastpath, then do the rest in a separate tailcalled function.
This results in significant performance gains since __libc_malloc doesn't need
to setup a frame and we delay tcache initialization and setting of errno until
later.
On Neoverse V2, bench-malloc-simple improves by 6.7% overall (up to 8.5% for
ST case) and bench-malloc-thread improves by 20.3% for 1 thread and 14.4% for
32 threads.
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/arc/ldsodefs.h')
0 files changed, 0 insertions, 0 deletions