News for hackers. Stuff that matters.
Re:Boehm-Demers-Weiser conservative C/C++ Garbage Collector by torginus on Sunday January 21, 2024 @08:13AM (#39078153)
Afaik (C)Python uses reference counting, it's slowness comes from the interpreter itself.
Re:Boehm-Demers-Weiser conservative C/C++ Garbage Collector by _flux on Sunday January 21, 2024 @08:21AM (#39078192)
It uses also tracing GC to handle RC loops.

I guess doing it this way allows to have mostly deterministic collection (that is then just an implementation feature, not language semantics) while needing the actual tracing GC to not be that efficient, as it presumably needs to be executed less rarely.

Re:Boehm-Demers-Weiser conservative C/C++ Garbage Collector by kaba0 on Sunday January 21, 2024 @10:52AM (#39079514)
Ref counting is a GC-algorithm, and the slowest at that (especially with multi-core sync, but that’s not the case with python), as a tradeoff for less memory consumption.