Article: Increasing the D Compiler Speed by Over 75%
Richard Webb
richard.webb at boldonjames.com
Mon Aug 12 08:00:12 PDT 2013
Another little observation:
Dsymbol::toPrettyChars() potentially calls toChars() twice on each
symbol (so it creates 2 copies of the string representation).
Some instances of toChars() just return a literal string, but for
templates it can do a bunch of work. Doesn't sounds like the most
efficient approach?
Saying that though, it looks like a lot of the calls to that are to
build error strings that are never displayed because errors are gagged,
which doesn't sound ideal either?
More information about the Digitalmars-d-announce
mailing list