Compilation with dub + dmd: out of memory
ddos via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Feb 10 09:17:16 PST 2015
On Tuesday, 10 February 2015 at 12:18:15 UTC, Vlasov Roman wrote:
> On Tuesday, 10 February 2015 at 11:55:43 UTC, Daniel Kozák
> wrote:
>> V Tue, 10 Feb 2015 11:44:09 +0000
>> Vlasov Roman via Digitalmars-d-learn
>> <digitalmars-d-learn at puremagic.com> napsáno:
>>
>>> On Tuesday, 10 February 2015 at 11:32:32 UTC, bearophile
>>> wrote:
>>> > Vlasov Roman:
>>> >
>>> >> I have the quite computer with 2 GB RAM. At compilation
>>> >> with dub and dmd of small project this pair eating about
>>> >> 1.4~1.5 GB RAM. I solve this probleb by connecting swap
>>> >> partition, but it calls some freezes + it take ~10% of
>>> >> swap, and after compilation swap not released. At
>>> >> switching off swap as result we get ~200 MB of "dead data"
>>> >> in RAM, which can be released by rebooting. How i can
>>> >> resolve it?
>>> >
>>> > Look for CTFE code, perhaps some of it is excessive. You
>>> > can convert some of it to run-time in a module-level static
>>> > this().
>>> >
>>> > Bye,
>>> > bearophile
>>>
>>> I think you don't understand me. 1.4~1.5 GB taked by
>>> compilator at compilation my project in 100 string of code in
>>> 3 modules.
>>>
>>
>> Still it could be code dependent, can you share your code
>> anywhere?
>
> https://bitbucket.org/VlasovRoman/ogl/overview
a bit offtopic from your thread but maybe you are interested ...
at vienna university of technology i attended a similar software
rendering course,
some resources are publicly available (and in english)
https://lva.cg.tuwien.ac.at/ecg/wiki/doku.php
some impressions from previous years entries:
https://lva.cg.tuwien.ac.at/ecg/wiki/doku.php?id=students:ws2013:hall_of_fame
More information about the Digitalmars-d-learn
mailing list