|
|
|
|
|
by benhoyt
5282 days ago
|
|
It's not quite true to say reference counting adds overhead "for each access" -- for example, you can easily have a loop which accesses an object but doesn't modify the reference count. Reference counting adds overhead each time someone "expresses an ownership interest" in an object (wording from http://developer.apple.com/library/ios/#documentation/genera...). (That's not to say your main point is false. I don't actually know which is faster in general.) |
|
In summary, safe and efficient multithreaded code is never easy.