about summary refs log tree commit diff
path: root/sysdeps/aarch64/memmove.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2022-08-11 16:47:45 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2022-08-11 16:47:45 +0100
commitc51c483d2b8ae66fe31a12509aedae02a6982ced (patch)
treec1da76a910cc6e015843c24b495c987237de916d /sysdeps/aarch64/memmove.c
parent11f09947f3066f5ff84fd15ef22b72b46eea97a8 (diff)
downloadglibc-c51c483d2b8ae66fe31a12509aedae02a6982ced.tar.gz
glibc-c51c483d2b8ae66fe31a12509aedae02a6982ced.tar.xz
glibc-c51c483d2b8ae66fe31a12509aedae02a6982ced.zip
libio: Improve performance of IO locks
Improve performance of recursive IO locks by adding a fast path for
the single-threaded case. To reduce the number of memory accesses for
locking/unlocking, only increment the recursion counter if the lock
is already taken.

On Neoverse V1, a microbenchmark with many small freads improved by
2.9x. Multithreaded performance improved by 2%.

Reviewed-by: Cristian Rodríguez  <crrodriguez@opensuse.org>
Diffstat (limited to 'sysdeps/aarch64/memmove.c')
0 files changed, 0 insertions, 0 deletions