[dmd-internals] Memory Leak

Walter Bright walter at digitalmars.com
Tue Nov 13 23:27:18 PST 2012


On 11/13/2012 11:14 PM, David Held wrote:
> On 11/13/2012 5:53 PM, Walter Bright wrote:
>>
>>
>> I agree. I had actually put it in there with the intent to lay the 
>> foundation, so that others had at least a working system they could 
>> experiment with.
>
> Is it better to pursue the GC route or the smart pointer route?


Since the GC is already there and works, I'd say it's easier to try that route 
first. Some simple things I'd do to try and speed it up that are specific to dmd:

1. disable all the threading lock code

2. tune it so it doesn't try to do a collection until more than 1Gb is allocated


More information about the dmd-internals mailing list