Why is this increasing memory consumption on every iteration?
Timon Gehr
timon.gehr at gmx.ch
Sun Jun 16 11:02:26 PDT 2013
On 06/16/2013 07:20 PM, Geancarlo Rocha wrote:
> On Sunday, 16 June 2013 at 02:12:02 UTC, Geancarlo Rocha wrote:
>> I expected the memory to ramp up in the first couple iterations and
>> eventually reach a stable point, but for some reason, windows task
>> manager shows it increases on every iteration. Compiling with -m64
>> doesn't seem to change this issue.
>>
>> http://pastebin.com/G5JXR9AA
>
> I think it is safe to assume
This way of reasoning is flawed.
> the current GC is unreliable, booo!
No it is not. You are not even allocating GC-controlled memory during
the loop.
This is a std.container.BinaryHeap issue. It never shrinks the
underlying container.
http://d.puremagic.com/issues/
More information about the Digitalmars-d-learn
mailing list