Regex performance

James Miller james at aatch.net
Mon Mar 26 15:35:42 PDT 2012


On 27 March 2012 11:05, Ali Çehreli <acehreli at yahoo.com> wrote:
> My unofficial results comparing 2.056 to 2.058 on 64 bits:
>
> shakespeare.txt, 2.056 -> 1868 msecs
> shakespeare.txt, 2.058 ->  632 msecs
>
> data.csv, 2.056 -> 51953 msecs
> data.csv, 2.058 ->  1329 msecs
>
> That last line is pretty impressive. :)

Dmitry did impressive work over those few version of Phobos/DMD. The
performance is even more impressive when you consider that std.regex
supports things like named matching and lookbehind that often slow
down a regex (also kinda removes the "regular" from the name regular
expression, technically)

--
James Miller


More information about the Digitalmars-d mailing list