23-Apr-2014 01:00, Iain Buclaw via Digitalmars-d пишет:
On 22 April 2014 21:43, Peter Alexander via Digitalmars-d
<[email protected]> wrote:
On Tuesday, 22 April 2014 at 18:09:12 UTC, Iain Buclaw wrote:

Testing a 2.065 pre-release snapshot against GDC. I see that std.algorithm
now surpasses 2.1GBs of memory consumption when compiling unittests.  This
is bringing my laptop down to its knees for a painful 2/3 minutes.


My (ancient) laptop only has 2GB of RAM :-)

Has anyone looked into why it is using so much? Is it all the temporary
allocations created by CTFE that are never cleaned up?

I blame Kenji and all the semanticTiargs and other template-related
copying and discarding of memory around the place. :o)


At a times I really don't know why can't we just drop in a Boehm GC (the stock one, not homebrew stuff) and be done with it. Speed? There is no point in speed if it leaks that much.

--
Dmitry Olshansky

Reply via email to