garbage-collecting VMs
Posted Feb 27, 2007 9:04 UTC (Tue) by
flewellyn (subscriber, #5047)
In reply to:
garbage-collecting VMs by ncm
Parent article:
Ruby Performance (Linux Journal)
We can expect implementations based on garbage-collecting VMs to do badly
where locality matters.
That's not necessarily true. It's going to depend on the type of GC. A good compacting or
copying collector, an ephemeral collector, and other strategies can help enormously with locality
issues, especially with long-lived objects (and with a copying or ephemeral collector, short-lived
objects don't matter anyway). Collectors can be tuned to improve locality over hand-allocated
memory, in fact. So let's not be spreading old misconceptions about GC now, okay? It's the 21st
century, we've had the technique for fifty years, and it's been well proven by now. :-)
(
Log in to post comments)