[Issue 14431] [REG 2.067.0] huge slowdown of compilation speed

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Apr 19 21:39:46 PDT 2015


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

--- Comment #5 from Martin Nowak <code at dawg.eu> ---
(In reply to Martin Krejcirik from comment #4)
> I'm not sure how relevant this is to the general compilation speed, but
> anyway:
> 
> import  std.regex;
> 
> auto RE_VARSET = regex(r"(?<!!\w+.*)!(\w+)\s*=\s*([\w!.-]+|`.+`|" ~ `".*")[
> \t]*`,"i");
> auto RE_CMD    = regex(r"!([A-Z_]+)\(([A-Za-z0-9_ .:;!,@{}/*-]*)\)");

This spends most of it's time in CTFE interpretation.
I get a 5-10% speedup when compiling v2.067.0 on my machine vs. using the
released binary, most likely because of a newer gcc 4.9.2 vs. gcc 4.7.2 on the
debian build image.

--


More information about the Digitalmars-d-bugs mailing list