logoalt Hacker News

xxs • yesterday at 6:32 AM • 1 reply • view on HN

ref counting is expensive in multi-threaded applications. Overall it would have worse performance. When it comes to predictability: deallocating a linked list (for instance) would have to deallocate all of the elements. Dealing with reference cycles is also not simple, either.


Replies

raverbashing • yesterday at 8:13 AM

Honestly some (container) objects makes me think that they should be "parent obj management only"