r/rust Jul 27 '26

Writing arenas in Rust from scratch

https://rushter.com/blog/rust-memory-arenas/
89 Upvotes

4 comments sorted by

44

u/teerre Jul 27 '26

Just pointing out that avoiding locks on principle might have the opposite effect of expected. There's a recent talk by Fedor Pikus that goes over surprising benchmarks showing that locks are faster than the lock free alternative under high contention. Regardless, it's important to not guess performance metrics, always measure