Thread overview | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
August 21, 2013 [Issue 10866] New: Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10866 Summary: Regression (2.064 git-head) Massive compiler slowdown Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: performance Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-08-21 12:47:19 PDT --- What's up with the slowdown of the compiler in git-head? Here is the average time to build this simple test-file: ----- module test; import std.stdio; void main() { } ----- 2.063.2: 392 msecs Git-head (1a6da16ef112e03607574758b722698f2950b0de): 1_251 msecs The timings are pretty stable from my end. In another one of my projects the timings are: 3_500 ms in 2.063 4_800 ms in 2.064 The codebase is around 10K. However in other projects I get a speedup. Here's WindowsAPI being built: 2.063: 19_903 msecs. 2.064: 9_782 msecs. I guess Walter's recent speedups made the compiler faster. But there must have been acommit which seems to have slowed some other things down. According to Don it may have been this pull: https://github.com/D-Programming-Language/dmd/pull/2421#issuecomment-22688675 And I can confirm it from my side. In the 10K project I've tried running a full build with these two DMD commits: commit A: 805dd761dd85c98d60b3957bd5679cdbbf23c7f2 commit B: 52cc28752a6fd01446fd09a7ab9bd9f94ea601d2 commit A is the one introduced by Pull request #2421, commit B is one commit before it. Measurements: commit A: 4_795 msecs commit B: 3_900 msecs -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 21, 2013 [Issue 10866] Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=10866 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-08-21 12:47:50 PDT --- (In reply to comment #0) > What's up with the slowdown of the compiler in git-head? Here is the average time to build this simple test-file: Forget this line, I copy-pasted it from the NG post I made. It must have just been an oversight. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 21, 2013 [Issue 10866] Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=10866 monarchdodra@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |monarchdodra@gmail.com --- Comment #2 from monarchdodra@gmail.com 2013-08-21 13:39:03 PDT --- Maybe related: http://d.puremagic.com/issues/show_bug.cgi?id=10864 ? Although that's actually a run-time slowdown. Appender is also widely used with CTFE, so that could be it? Does your code base depend on Phobos? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 24, 2013 [Issue 10866] Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=10866 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2013-08-24 08:34:14 PDT --- https://github.com/D-Programming-Language/dmd/pull/2496 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 25, 2013 [Issue 10866] Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=10866 --- Comment #4 from github-bugzilla@puremagic.com 2013-08-24 23:32:37 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/751353c8217596726ab219b7d3a690e8950e409e fix Issue 10866 - Regression (2.064 git-head) Massive compiler slowdown Revert part of the change in commit 805dd761dd85c98d60b3957bd5679cdbbf23c7f2. Read the detailed comment in code. https://github.com/D-Programming-Language/dmd/commit/1399b1f7b94ef1c1b24f2ce842b6f247e2e1fc52 Merge pull request #2496 from 9rnsr/fix10866 Issue 10866 - Regression (2.064 git-head) Massive compiler slowdown -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 25, 2013 [Issue 10866] Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=10866 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 25, 2013 [Issue 10866] Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=10866 --- Comment #5 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-08-25 06:02:47 PDT --- Well the timings are better now, but they're still more than twice as slow: 2.063.2: 390 msecs Git-head: 970 msecs Unless std.stdio has started importing a lot more modules, I wouldn't consider this issue to be fixed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 25, 2013 [Issue 10866] Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=10866 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #6 from bearophile_hugs@eml.cc 2013-08-25 06:42:23 PDT --- (In reply to comment #5) > Well the timings are better now, but they're still more than twice as slow: > > 2.063.2: > 390 msecs > > Git-head: > 970 msecs > > Unless std.stdio has started importing a lot more modules, I wouldn't consider this issue to be fixed. This is a significant issue, so if you think the problem is not yet fully solved, then I suggest you to reopen this issue. What are the timings for your two other cases (your project and the WindowsAPI)? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 25, 2013 [Issue 10866] Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=10866 --- Comment #7 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-08-25 15:02:16 PDT --- (In reply to comment #0) > However in other projects I get a speedup. Here's WindowsAPI being built: > > 2.063: 19_903 msecs. > 2.064: 9_782 msecs. This is now 12_000 msecs in git-head, so it's gotten worse. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 28, 2013 [Issue 10866] Regression (2.064 git-head) Massive compiler slowdown | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=10866 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #8 from bearophile_hugs@eml.cc 2013-08-27 17:27:40 PDT --- Reopened because Andrej Mitrovic says the problem is not yet solved. (Close down again if I am wrong.) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation