On Fri, Nov 23, 2018 at 10:00 AM Chris Katko via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote:
> Any time I see people mention the benefits of D, I see "compile > times" "compile times" "compile times" over and over. > > I'm using very modest amounts of templates, for a fairly small > sized program (very early work toward a game), and I'm hitting > ~15 seconds compile time in LDC and ~7 seconds in DMD. And I'm > not even compiling with optimizations! > > ldc2 -w -ofextra extra.d molto.d helper.d editor.d common.d > map.d object_t.d animation.d ini.d -L-L. $@ -gc -d-debug=3 > -de -fdmd-trace-functions > > dmd -w -ofextra extra.d molto.d helper.d editor.d common.d map.d > object_t.d animation.d ini.d -profile=gc -profile -g -debug > -color -L-L. > > I keep putting stuff into new files, but it feels like it's > compiling everything from scratch / not getting faster the way > C++ does. > > And I'm not even bringing up the 800MB of RAM required because I > dared to import std.regex. (On a laptop with 2 GB of RAM. RIP. If > I dare to have tabs open, the compile time goes into the minutes > thanks to swapping.) > > AFAIK debug builds are slower? Can you share your files with us? So I can try to find out what is the main problem