Why doesn’t Java add reference-counting, and only fall back to garbage collection when it has no choice?
Look at how a more modern language like Python does it, or even hoary old Perl. This is why they can make so much more efficient use of memory than Java can manage. Also reference-counting is less cache-hostile, so it could be faster.
Look at how a more modern language like Python does it, or even hoary old Perl. This is why they can make so much more efficient use of memory than Java can manage. Also reference-counting is less cache-hostile, so it could be faster.
Comment