Get the latest tech news

Read Locks Are Not Your Friends


TLDR On commercial hardware, RwLock was ~5× slower than Mutex for a read-heavy cache workload due to atomic contention and cache-line ping-pong. Introduction This is a story about how “obvious” optimizations can backfire.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of friends

friends

Photo of read locks

read locks

Related news:

News photo

Linus Torvalds and friends: how Linux evolved from solo act

News photo

Your Friends Could Be Sharing Your Phone Number with ChatGPT

News photo

Show HN: I made paperboat.website, a platform for friends and creativity