Is there some known fix for this? I need this to work now. Otherwise, I'm going to have to rewrite my CTFE/mixin code in Python or something, which would be a shame, and a waste of time on my part. This is not the first compiler bug I run into, and I'm starting to regret not implementing my project in C++ instead.
One of the reasons I chose to use D for my project is that I was
very excited about the prospect of using CTFE in mixin code.
Unfortunately, there seems to be one (or several?) bugs causing
CTFE to be very slow and to hog a huge amount of memory (multiple
gigs of RAM and swap). I use the latest dmd and my mixin code
uses an Appender!string object to produce a long string of D code
containing multiple functions (~1500 lines).
- CTFE Memory Hogging Workaround? Maxime Chevalier
- Re: CTFE Memory Hogging Workaround? Timon Gehr
- Re: CTFE Memory Hogging Workaround? Jonathan M Davis
