[dmd-internals] [D-Programming-Language/dmd] 2f7ce3: add gc for Windows dmd

Sean Kelly sean at invisibleduck.org
Sat Sep 24 17:00:58 PDT 2011


Perhaps the ideal approach here is to only collect when unable to obtain more memory from the OS?  Or turn on collections when DMD hits some threshold for memory consumption?  You really only want the GC to trigger when compiling a lot of CTFE and template code.

On Sep 24, 2011, at 2:10 PM, Brad Roberts wrote:

> Looks like the execution time for dmd and phobos have increased fairly 
> substantially since the gc was checked in.
> 
>  http://d.puremagic.com/test-results/platform-history.ghtml?os=Win_32
>  http://d.puremagic.com/test-results/platform-history.ghtml?os=Linux_32
> 
> The linux link is just for comparison to show that no increase has 
> occurred there.  On windows the phobos test time has increased from 
> approx 8 minutes to approx 10 minutes, or 25%.  The dmd test has 
> increased from approx 27 minutes (much more variation and I didn't 
> compute an average or std dev) to approx 39 minutes (with only one 
> completed data point so far, so, well, grain of salt), almost doubling.
> 
> A few more runs will help show the averages better, but still worth 
> being concerned about.  That's a significant performance hit to the 
> compiler.
> 
> On Saturday, September 24, 2011 2:26:37 AM, noreply at github.com wrote:
>>  Branch: refs/heads/master
>>  Home:   https://github.com/D-Programming-Language/dmd
>> 
>>  Commit: 2f7ce3475128142068a491430b038c30dff42bd2
>>      https://github.com/D-Programming-Language/dmd/commit/2f7ce3475128142068a491430b038c30dff42bd2
>>  Author: Walter Bright <walter at walterbright.com>
>>  Date:   2011-09-24 (Sat, 24 Sep 2011)
>> 
>>  Changed paths:
>>    M src/mars.c
>>  M src/module.c
>>  A src/root/dmgcmem.c
>>  A src/root/gc/bits.c
>>  A src/root/gc/bits.h
>>  A src/root/gc/gc.c
>>  A src/root/gc/gc.h
>>  A src/root/gc/gccbitops.h
>>  A src/root/gc/linux.c
>>  A src/root/gc/mscbitops.h
>>  A src/root/gc/os.h
>>  A src/root/gc/testgc.c
>>  A src/root/gc/win32.c
>>  M src/root/rmem.c
>>  M src/root/root.c
>>  M src/win32.mak
>> 
>>  Log Message:
>>  -----------
>>  add gc for Windows dmd
>> 
>> 
> 
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals



More information about the dmd-internals mailing list