News for hackers. Stuff that matters.
Re:Garbage Collection is Wrong by danbruc on Thursday February 27, 2014 @05:22PM (#7315652)
Reference counting doubles the number of memory access - you have to update the reference and the counter every time. That is a big performance hit. Reference counting may randomly halt your code, too, because you never know when you hit zero and the resource gets freed.
Re:Garbage Collection is Wrong by mcguire on Thursday February 27, 2014 @07:19PM (#7316385)
And you don't know how many resources will be freed when you drop the last pointer to that giant tree structure.

Of course, you could queue up and lazily delete the resources, but then you're back to nondeterministic behavior.