March 20
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.
Next ›   Last »
1 2