I don't get why people do not prefer reference counting, it has more predictable runtime performance(though of course a swap is a swap - but you can "trigger" it depending on your memory or file access pattern)
> more predictable runtime performanceNot really, reference counting can cause a single object deallocation to trigger an arbitrarily long chain of deallocations.
Yes but then you can move your deallocation out of the critical pathVariable time yes but you know when you're going to pay it(I mean yes you can put your gc.run() there as well, but it might not give you the results you want)
raverbashing · · focus · HN ↗
(though of course a swap is a swap - but you can "trigger" it depending on your memory or file access pattern)
bheadmaster · · focus · HN ↗
Not really, reference counting can cause a single object deallocation to trigger an arbitrarily long chain of deallocations.
raverbashing · · focus · HN ↗
Variable time yes but you know when you're going to pay it
(I mean yes you can put your gc.run() there as well, but it might not give you the results you want)