Error: out of memory
Era Scarecrow via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Mar 19 22:37:33 PDT 2017
On Saturday, 18 March 2017 at 20:39:20 UTC, StarGrazer wrote:
> I have some CTFE's and meta programming that cause dmd to run
> out of memory ;/
>
> I am generating simple classes, but a lot of them. dmd uses
> about 2GB before it quits. It also only uses about 12% of cpu.
I've noticed heavy use of foreach and temporary variables will
end up wiping out a lot of your memory using CTFE... At which
point using a different for loop might be a better idea.
More information about the Digitalmars-d-learn
mailing list