D std.regex is so slow

Jon Degenhardt jond at noreply.com
Tue Sep 19 16:05:01 UTC 2017


On Tuesday, 19 September 2017 at 07:53:27 UTC, Daniel Kozak wrote:
> https://github.com/mariomka/regex-benchmark#performance
>
> Do you know why?
>
> Here is a code:
> https://github.com/mariomka/regex-benchmark/blob/master/d/benchmark.d
>
> I have try it with ldc too, but is still much slower (10x) than 
> PHP

Might get some gain by compiling with '-flto-full'. Was faster on 
a regex test I ran, though not nearly the deltas shown.

--Jon


More information about the Digitalmars-d mailing list