← Back to index
|
Original Bugzilla link
Bug 17410 – Compilation is incredibily slow when instantiating classes in release mode
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-05-18T13:30:00Z
Last change time
2017-05-18T15:23:58Z
Keywords
performance
Assigned to
nobody
Creator
kriptogames
Comments
Comment #0
by kriptogames — 2017-05-18T13:30:31Z
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.
Comment #1
by dfj1esp02 — 2017-05-18T15:23:58Z
*** This issue has been marked as a duplicate of issue 17135 ***