diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2022-08-11 16:47:45 +0100 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2022-08-11 16:47:45 +0100 |
commit | c51c483d2b8ae66fe31a12509aedae02a6982ced (patch) | |
tree | c1da76a910cc6e015843c24b495c987237de916d /sysdeps/aarch64/e_sqrtl.c | |
parent | 11f09947f3066f5ff84fd15ef22b72b46eea97a8 (diff) | |
download | glibc-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/e_sqrtl.c')
0 files changed, 0 insertions, 0 deletions