https://issues.dlang.org/show_bug.cgi?id=17410
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: nob...@puremagic.com Reporter: kriptoga...@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 https://github.com/sel-project/sel-server/blob/8b92f0b6e278bde2ba4d2aaaaf0214992af88ff2/node/src/sel/block/blocks.d#L141 and https://github.com/sel-project/sel-server/blob/8b92f0b6e278bde2ba4d2aaaaf0214992af88ff2/node/src/sel/item/items.d#L44 Reproduce: $ 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. --