Comment

Comment by PeterWhittaker

Naive question, since this isn't my area of expertise, but Rust has RwLock: Why wouldn't one simply use RwLock to allow many readers and a single writer?

How does this approach outperform RwLock (for arbitrary interpretations of outperform) and how does RwLock outperform this approach (ditto)?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton