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