3 ms·
> reference counting will always use more ram because a reference count must be stored True, reference counting stores references… but garbage collection store
by Shish2k 6y ago
> reference counting will always use more ram because a reference count must be stored
True, reference counting stores references… but garbage collection stores garbage, which is typically bigger than references :)
(Unless you’re thinking of a language where the GC gets run after every instruction - but I’m not aware of any that do that, all the ones I know of run periodically which gives garbage time to build up)