3 ms·
Not really sure what the tag in the pointer would be used for. Could you give an example. In general, reference counting has the problem that it needs to updat
by mzl 12y ago
Not really sure what the tag in the pointer would be used for. Could you give an example.
In general, reference counting has the problem that it needs to update the reference count. If you have a read-only data-structure these updates to the references will introduce writes that may severely impact performance since a write introduces cache consistency communication, while reads are communication-free.
- pohl 12y agoYeah, you're right. I didn't think it through when I asked. I conflated this scenario with the technique they use to put small objects like NSNumber on the stack.