4 ms·
Ref-counting provides consistent performance - the costs are amortized smoothly over the operations. They aren't doing all this work for "purity".
by jeremyjh 5y ago
Ref-counting provides consistent performance - the costs are amortized smoothly over the operations. They aren't doing all this work for "purity".
- louthy 5y agoRef counting can also lead to memory leaks with circular references.
- deleted 5y ago[deleted]
- bjourne 5y agoPerformance of ref-counting is proportional to the size of the dead objects. Performance of tracing gc is proportional to the size of the alive objects. In other words, there are many real-world situations in which ref-counting pauses are much longer than tracing gc pauses.