3 ms·
Yes, but the overhead is much smaller compared to other techniques, and it's simpler to predict runtime behavior because there is no nondeterminism when ignorin
by madmax96 8y ago
Yes, but the overhead is much smaller compared to other techniques, and it's simpler to predict runtime behavior because there is no nondeterminism when ignoring the runtime which would otherwise be introduced by collector behavior.
- khkjb80 8y agowith all those differences, reference counting is not garbage collecting, it's like calling free in c garbage collecting, which is incorrect.
- madmax96 8y agohttps://en.m.wikipedia.org/wiki/Garbage_collection_(computer_science) https://en.m.wikipedia.org/wiki/Garbage_collection_(computer... Reference counting is listed as a strategy to achieve garbage collection. Broadly speaking, garbage collection is the process of automatically managing the lifecycles of objects in memory, which reference counting certainly achieves.