|
|
|
|
|
by beagle3
2211 days ago
|
|
> Reference counting leaks cycles unless accompanied with a tracing GC (at which point reference counting makes little sense). Python proves otherwise. Reference counting gives you deterministic memory use and finalization except when a cycle is involved. The tracing GC helps for those cases (and libraries) that do introduce cycles. If each one of your objects is in a cycle, then -- yes, reference counting makes no sense. If only 1% of your objects are in a cycle, it makes 99% sense. |
|