[Issue 10866] Regression (2.064 git-head) Massive compiler slowdown

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 12 13:49:31 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10866


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|pull                        |
          Component|DMD                         |Phobos


--- Comment #11 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-12 13:49:29 PDT ---
As I've commented in
https://github.com/D-Programming-Language/dmd/pull/2550#issuecomment-24353784,
this is a Phobos issue, not a compiler one. I'm copying that comment here
verbatim:

I've reduced it to a Phobos commit:

---
9a053d97c26d763718b23d14af8ef1d10d594507 is the first bad commit
commit 9a053d97c26d763718b23d14af8ef1d10d594507
Author: Dmitry Olshansky <dmitry.olsh at gmail.com>
Date:   Sat Jul 20 22:30:10 2013 +0400

    new std.uni module
---

If you check out the following commits for DMD+Druntime+Phobos:

---
DMD: 4e9a7b1
Druntime: f6692fe
Phobos: 9a053d9
---

Then compiling the following:

---
import std.stdio;
void main() { }
---

Takes ~1270 msecs. If you checkout one Phobos commit earlier (which is
`1bd22b2`), it takes ~500 msecs to compile it.

Btw I can also reproduce this commit is the offending one with other libraries,
like DCollections. I'm pretty sure most libraries import std.stdio at one point
or another, so they will all suffer from this slowdown.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list