TechWorkRamblings

by Mike Kalvas

202602222043 Read Locks and Cache Line Ping Pong

#microblog #link

I just read a great, quick article about the unintuitive times when using read locks (e.g., RwLock) in read-heavy workloads of performance critical hot paths actually perform much worse than write locks (e.g., Mutex). While this article doesn’t go too deep on the subject, it’s a good reminder to always profile performance optimizations since the results can surprise you. The article is called Read Locks Are Not Your Friends, check it out!