4 ms·
GC specifically means you leave unreferenced mem on the heap until it gets collected in one big sweep later.
by frollogaston 2mo ago
GC specifically means you leave unreferenced mem on the heap until it gets collected in one big sweep later.
- ghusbands 1mo agoYou're referring specifically to tracing garbage collection. When a reference count reaches zero, that garbage is collected, often recursively. Among programming language designers, ARC is considered a GC strategy. https://en.wikipedia.org/wiki/Garbage_collection_(computer_science) https://en.wikipedia.org/wiki/Garbage_collection_(computer_s... https://users.rust-lang.org/t/reference-counting-garbage-collection-and-rust/107728/24 https://users.rust-lang.org/t/reference-counting-garbage-col...