10 ms·
> Apparently, Python split the difference and uses reference counting alongside garbage collection: Splitting the difference between what? Both reference count
by Jtsummers 4y ago
> Apparently, Python split the difference and uses reference counting alongside garbage collection:
Splitting the difference between what? Both reference counting and generational garbage collection algorithms are garbage collection algorithms. The generational garbage collection algorithm is to handle issues with things like cyclic references (A->B, B->A) which would cause a pure reference counting garbage collector to retain the memory even if nothing else referenced A or B.