36 ms·
> Reference counting does not scale to multi-threaded programs well. Keeping reference counts up to date across multiple threads is maddeningly and frightenly
by staticassertion 10y ago
>
Reference counting does not scale to multi-threaded programs well. Keeping reference counts up to date across multiple threads is maddeningly and frightenly hard to do efficiently.
Is this not just a matter of using an atomic reference count?
- iainmerrick 10y agoYes, but atomics are pretty slow.
- staticassertion 10y agoI guess, but that doesn't seem that bad. > maddeningly and frightenly hard to do efficiently. It definitely doesn't seem maddening or frightening. I'm not saying a GC isn't stricly better (because I'm unsure either way) but arc doesn't seem like some awful thing.