[Issue 13232] dmd compile times increased by 10-20%

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 31 17:26:07 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13232

--- Comment #1 from Martin Nowak <code at dawg.eu> ---
There seems to be a bunch of tiny slowdowns that are hard to identify.
I could identify 2 commits though that significantly added to the compile time.

Fix issue 12455 [reg]Bad lowercase mapping for 'LATIN CAPITAL LETTER …
…I WITH DOT ABOVE'
https://github.com/D-Programming-Language/phobos/commit/c131da58341b5af00feedd3dc535f2915cbdae0e

Add - SHA-2
https://github.com/D-Programming-Language/phobos/commit/7b368482166470421868aa9ecab95d37f130d374

The problem in both cases seems to be this pattern.

----
module slowdown;

alias foo = complicatedTemplate!SomeArgs;
----

When the compiler imports a module with such a declaration it will run complete
semantic on the  template.

First pull for std.uni:
https://github.com/D-Programming-Language/phobos/pull/2392

Changing std.digest.sha will be bit more difficult, but we should do it before
2.066 sets the API in stone.

--


More information about the Digitalmars-d-bugs mailing list