4 ms·
garbage collectors detect cycles. you may be thinking of reference counting. CPython includes a gc for cycle detection
by __s 2y ago
garbage collectors detect cycles. you may be thinking of reference counting. CPython includes a gc for cycle detection
- oneshtein 2y agoSome GC detects cycles, some not (reference counting is example of GC which does not), but even those which detects cycles, may not able to detect all of them or it can be expensive as, for example, in typical Mark&Sweep GC, because it may require to stop the world to perform GC, which is unacceptable for system programming languages, like C, C++, Rust.
- pebal 2y agoYou can have completely pauseless GC tracking, also in Rust.