www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17410] New: Compilation is incredibily slow when


          Issue ID: 17410
           Summary: Compilation is incredibily slow when instantiating
                    classes in release mode
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kriptogames gmail.com

As shown in this travis-ci build
(https://travis-ci.org/sel-project/sel-server/builds/233579132) the compilation
is incredibly slow when compared to LDC, which is usually slower.

The code that causes the slowness can be viewed at

$ git clone https://github.com/sel-project/sel-server sel-server
$ cd sel-server/node
$ dub build --build=release

To test without the code that instantiates the classes add 'versions
"NoBlocks"' and 'versions "NoItems"' to dub.sdl.

May 18 2017