Bug 11250 – Compile time almost doubled

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-13T23:45:00Z
Last change time
2015-06-09T01:31:16Z
Assigned to
nobody
Creator
michal.minich

Comments

Comment #0 by michal.minich — 2013-10-13T23:45:33Z
dmd 2.064 beta 1 Approximate timings 28 seconds - dmd 2.063 + updated snn.lib 52 seconds - dmd 2.064 beta 1 for compilation of vibed in VisualD, including deimos dependencies using parameters similar to -lib -g -debug -w -property -X -Xf"x.json" -Isource -deps="x.dep" -of"x.lib" -map "x.map" -L/NOMAP
Comment #1 by dmitry.olsh — 2013-10-20T11:56:41Z
It looks a lot like a dup of http://d.puremagic.com/issues/show_bug.cgi?id=10866 Michal can you re-test with beta 2 of dmd 2.064?
Comment #2 by michal.minich — 2013-10-20T12:09:55Z
(In reply to comment #1) > It looks a lot like a dup of > http://d.puremagic.com/issues/show_bug.cgi?id=10866 > > Michal can you re-test with beta 2 of dmd 2.064? With dmd 2.064 beta 2 Approximate timings 28 seconds - dmd 2.063 + updated snn.lib 9 seconds - dmd 2.064 beta 2 So the build time is now 3 times faster the 2.063 and 6 times faster than beta 1! If that is not another bug it is incredible! My test was building single lib file ,about 11 mb, which is the same size as with 2.063. What enhancement(s) is causing this speedups?
Comment #3 by code — 2013-10-20T12:19:01Z
If you now use visual studio to build dmd 2.064 you should be down to 4 seconds.
Comment #4 by dmitry.olsh — 2013-10-20T12:21:30Z
(In reply to comment #2) > (In reply to comment #1) > > It looks a lot like a dup of > > http://d.puremagic.com/issues/show_bug.cgi?id=10866 > > > > Michal can you re-test with beta 2 of dmd 2.064? > > With dmd 2.064 beta 2 > > Approximate timings > 28 seconds - dmd 2.063 + updated snn.lib > 9 seconds - dmd 2.064 beta 2 > > So the build time is now 3 times faster the 2.063 and 6 times faster than beta > 1! If that is not another bug it is incredible! My test was building single lib > file ,about 11 mb, which is the same size as with 2.063. What enhancement(s) is > causing this speedups? Well there was some work on reducing interdependencies and a few steps taken to avoid parsing rarely used stuff in Phobos (specifically unicode tables). Plus specifically for vibe.d there was this enhancement (unless you test with the old version): https://github.com/rejectedsoftware/vibe.d/pull/341
Comment #5 by michal.minich — 2013-10-20T12:43:29Z
(In reply to comment #4) > Plus specifically for vibe.d there was this enhancement (unless you test with > the old version): > https://github.com/rejectedsoftware/vibe.d/pull/341 Well there was some work on reducing interdependencies and a few steps taken to avoid parsing rarely used stuff in Phobos (specifically unicode tables). I was testing on latest release 0.7.17 - without the specific vibe.d enhancement; so the "some work" and "few steps" you are referring to seems to really pay off.
Comment #6 by dmitry.olsh — 2013-10-20T13:01:19Z
(In reply to comment #5) > (In reply to comment #4) > > > Plus specifically for vibe.d there was this enhancement (unless you test with > > the old version): > > https://github.com/rejectedsoftware/vibe.d/pull/341 > > Well there was some work on reducing interdependencies and a few steps taken to > avoid parsing rarely used stuff in Phobos (specifically unicode tables). > > I was testing on latest release 0.7.17 - without the specific vibe.d > enhancement; so the "some work" and "few steps" you are referring to seems to > really pay off. I bet the compiler fix invlved still _did_ reduce the time. The pull for vibe was more of a workaround. Anyhow the time is back to "normal" so I'm closing this.