3 ms·
The cpython mark-and-sweep garbage collector does very little on purpose. It basically only gets involved for reference cycles. Anything else is dealt with by r
by Doxin 6y ago
The cpython mark-and-sweep garbage collector does very little on purpose. It basically only gets involved for reference cycles. Anything else is dealt with by reference counting. This way you prevent long GC pauses.
- a1369209993 6y agoTrue, but that's by no means a inherent characteristic of garbage collectors, or even garbage collectors operating on objects of a python implementation in particular.
- Doxin 6y agoTrue, but that is the current philosophy behind the garbage collector in the most used python implementation and it's unlikely to change.