40 ms·
They have a data structure that will do reference counting just like what most garbage collection systems use. You see it used every so often.
by honkycat 5y ago
They have a data structure that will do reference counting just like what most garbage collection systems use.
You see it used every so often.
- Const-me 5y agoRef.counting is slow, causes too many extra memory requests. Also, when the program is multithreaded, access to cache lines recently modified by another CPU core is expensive, even more so that a cache miss. For these reasons, most garbage collection systems are using mark and sweep, or something similar.