3 ms·
I wrote a small library called keepcalm (https://crates.io/crates/keepcalm https://crates.io/crates/keepcalm) to assist with shared and shared mutable data, whi
by mmastrac 2y ago
I wrote a small library called keepcalm (https://crates.io/crates/keepcalm https://crates.io/crates/keepcalm) to assist with shared and shared mutable data, which both tend to take a decent amount of effort to get right the first time through.
It turns out that the abstractions are actually performant enough that I never had to remove them from two projects I started using them in.
For most people, a SharedMut or Shared wrapper (or the underlying Arc+Mutex) is sufficient to get you most of the way to prototyping and beyond, based on my experiences.