A smaller GC benchmark

Sean Kelly sean at f4.ca
Mon Dec 10 14:16:52 PST 2007


bearophile wrote:
> Robert Fraser:
>> I've been wanting for a while to implement a different GC for D taking 
>> into account some of the stuff talked about in a few papers I read on 
>> non-moving GCs. IMO, D's GCs (Tango & Phobos) are pretty basic, they 
>> don't do any sort of sexy trickery.
> 
> I can see people in this newsgroup don't like to try to adapt already written code. Is this some bad from of NIH (Not Invented Here) syndrome? Maybe you can just take a 5-10-years old GC and adapt it, so we can avoid other 10 years of development and have a better GC soon (from your and other's comments I presume the Java GC can't be adapted to D, but other GCs may be found).
> 
> Note that ShedSkin uses the Bohem GC:
> http://www.hpl.hp.com/personal/Hans_Boehm/gc/
> From various tests it seems faster than the Phobos GC. Can't it be copied inside Phobos? It's well refined, well debugged, it doesn't leak, it has something like ten years of development, articles written on it, it's used often, etc. And it can be used from C too.

It would be trivial to plug the Boehm GC into Tango.  However, I'm not 
sure how much performance would benefit.  IIRC someone tested the Boehm 
GC with D a while back and it was actually slower than the one Walter wrote.


Sean



More information about the Digitalmars-d mailing list