aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nacl/pthread_condattr_setclock.c
diff options
context:
space:
mode:
authorWangyang Guo <wangyang.guo@intel.com>2024-11-26 15:33:38 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-11-27 08:24:09 +0800
commitc69e8cccaff8f2d89cee43202623b33e6ef5d24a (patch)
tree08817e40b4eeaab83cc382348c92c3c8e67fd371 /sysdeps/nacl/pthread_condattr_setclock.c
parent4836a9af89f1b4d482e6c72ff67e36226d36434c (diff)
downloadglibc-master.zip
glibc-master.tar.gz
glibc-master.tar.bz2
malloc: Avoid func call for tcache quick path in free()HEADmaster
Tcache is an important optimzation to accelerate memory free(), things within this code path should be kept as simple as possible. This commit try to remove the function call when free() invokes tcache code path by inlining _int_free(). Result of bench-malloc-thread benchmark Test Platform: Xeon-8380 Ratio: New / Original time_per_iteration (Lower is Better) Threads# | Ratio -----------|------ 1 thread | 0.879 4 threads | 0.874 The performance data shows it can improve bench-malloc-thread benchmark by ~12% in both single thread and multi-thread scenario. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/nacl/pthread_condattr_setclock.c')
0 files changed, 0 insertions, 0 deletions