3 ms·
Even in Swift the references are not "destroyed immediately" but because of various performance optimizations this "garbage state removal" is deferred - for exa
by pulse7 6y ago
Even in Swift the references are not "destroyed immediately" but because of various performance optimizations this "garbage state removal" is deferred - for example to the end of scope... The truth is, that they >>don't want to call it GC<< for marketing and other reasons... One could implement ARC with cycle collector for Java as well - and it would be just another form of GC... it would use less memory (because garbage would be released faster), but it would be slower...