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

Martin Krejcirik <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Martin Krejcirik <[email protected]> ---
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_ .:;!,@{}/*-]*)\)");


dmd 2.065
real    0m3.789s
user    0m3.548s
sys     0m0.232s

dmd 2.066.1
real    0m4.628s
user    0m4.328s
sys     0m0.292s

dmd 2.067
real    0m5.260s
user    0m4.940s
sys     0m0.308s

--

Reply via email to