Running out of memory ctfe 16GB

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 6 15:04:58 PDT 2017


On Thursday, 6 April 2017 at 20:49:00 UTC, Nierjerson wrote:
> I am running out of memory trying to generate CTFE code. It is 
> quite large generation but just repetitive loop acting on an 
> array item.
>
> [...]

Avoid function calls
Avoid Ranges (since those have alot of function calls 3 per 
iteration)
avoid AliasSeq

newCTFE is going to fix this!
And it should work for your case in 2-5 months.

I am sorry, but newCTFE work does take alot of time.



More information about the Digitalmars-d mailing list