A betterC base

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Feb 10 18:40:43 UTC 2018


On 2/10/18 10:14 AM, Dmitry Olshansky wrote:
> On Friday, 9 February 2018 at 21:24:14 UTC, Walter Bright wrote:
>> Of course, the issue can get more complex. GC uses 3x the memory of RC,
> 
>   I’ve seen figures of about x2 but that was in an old paper on Boehm GC.

This is the classic reference: 
https://people.cs.umass.edu/~emery/pubs/gcvsmalloc.pdf. Executive review 
in the abstract: "With only three times as much memory, the collector 
runs on average 17% slower than explicit memory management. However, 
with only twice as much memory, garbage collection degrades performance 
by nearly 70%. When physical memory is scarce, paging causes garbage 
collection to run an order of magnitude slower than explicit memory 
management." -- Andrei


More information about the Digitalmars-d mailing list