3 ms·
Reference counting is a form of garbage collection.
by pcwalton 8y ago
Reference counting is a form of garbage collection.
- tombert 8y agoYes but this is done at compile-time, not runtime, isn't it? EDIT: Upon reading some stuff, apparently I am mistaken, and it's got runtime overhead. Silly me.
- steveklabnik 8y agoYou're not totally wrong; that's the "A" in ARC: Automatic. It automatically inserts code at compile time, but that code has a runtime effect.