dmd memory usage
Steven Schveighoffer
schveiguy at gmail.com
Mon Nov 18 15:31:02 UTC 2019
On 11/18/19 3:16 AM, Jacob Carlborg wrote:
> On Monday, 18 November 2019 at 00:20:12 UTC, Steven Schveighoffer wrote:
>> I'm fighting some out of memory problems using DMD and some
>> super-template heavy code.
>
> Try to enable the GC using the `-lowmem` flag [1].
>
> [1] https://dlang.org/changelog/2.086.0.html#lowmem
>
I don't think this will work for me, as this isn't CTFE, and I'm
assuming the instantiated templates won't be collected because they stay
referenced for the whole program.
-Steve
More information about the Digitalmars-d-learn
mailing list