|
|
|
|
|
by loeg
1457 days ago
|
|
> > often > Not always Yeah, that's what "often" means. > Mutexes can be really fast (10-20ns) Notably, still worse than 0 ns. Ditto for Arc's refcounting and additional allocation. I'm not saying go on a crusade against Arc+Mutex here, but the easiest way to make effective use of modern multicore CPUS is to go to shared-nothing, independent data-per-thread designs (obviating Arc+Mutex). And if you aren't using Arc+Mutex, it's harder to accidentally share mutable state between threads. |
|