diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-05-09 16:02:14 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-05-14 09:22:32 +0000 |
commit | 36189c76fb9c0b281de23381ae5a462a7e102ee6 (patch) | |
tree | dfddcf14c0cb22b8d7ab8ff4ae0b255c4283d5f7 /sysdeps/unix/sysv/linux/netrose | |
parent | 0fc76d876261ee8253fef198ffec48c832edd4ff (diff) | |
download | glibc-36189c76fb9c0b281de23381ae5a462a7e102ee6.zip glibc-36189c76fb9c0b281de23381ae5a462a7e102ee6.tar.gz glibc-36189c76fb9c0b281de23381ae5a462a7e102ee6.tar.bz2 |
malloc: Improve performance of __libc_calloc
Improve performance of __libc_calloc 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_calloc doesn't need
to setup a frame.
On Neoverse V2, bench-calloc-simple improves by 5.0% overall.
Bench-calloc-thread 1 improves by 24%.
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/netrose')
0 files changed, 0 insertions, 0 deletions