Compilation with dub + dmd: out of memory
Vlasov Roman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Feb 10 03:44:09 PST 2015
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.
More information about the Digitalmars-d-learn
mailing list