3 ms·
refcounting gc is very fast and works fine for most of the references. Java not using a combination of both methods is a flaw.
by LtWorf 11mo ago
refcounting gc is very fast and works fine for most of the references. Java not using a combination of both methods is a flaw.
- gf000 11mo agoRefcounting is significantly slower under most circumstances. You are literally putting a bunch of atomic increments/decrements into your code (if you can't prove that the given object is only used from a single thread) which are crazy expensive operations on modern CPUs, evicting caches.
- LtWorf 11mo agoUnder most circumstances function local variables aren't passed to other threads, or passed at all.