Skip to content
Commit c51c483d authored by Wilco Dijkstra's avatar Wilco Dijkstra
Browse files

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: default avatarCristian Rodríguez <crrodriguez@opensuse.org>
parent 11f09947
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment