Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common/buffer: replace RWLock with spinlocks #7294

Merged
merged 1 commit into from Jan 26, 2016

Commits on Jan 18, 2016

  1. common/buffer: replace RWLock with spinlocks

    This decreases buffer::raw size by about 100 bytes (since RWLock occupies
    104 bytes and simple_spinlock_t just 4) and also significantly decreases
    time wasted by locking and unlocking, possibly reducing context switches too.
    Particularly visible when using small blocksizes.
    
    Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
    Piotr Dałek committed Jan 18, 2016
    Copy the full SHA
    507774a View commit details
    Browse the repository at this point in the history