Regex performance

Jesse Phillips Jessekphillips+D at gmail.com
Mon Mar 26 16:03:32 PDT 2012


On Monday, 26 March 2012 at 22:05:34 UTC, Ali Çehreli 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. :)
>
> Ali

Unofficial 2.056/2.058/Ruby 1.9.3 Windows 32bit data.csv:



data.csv, 2.056 -> 76351 msecs
data.csv, 2.058 ->  2573 msecs
data.csv, 1.9.3 ->  9170 msecs

Also I had to modify line 48 of the ruby file not knowing what 
I'm doing:

if text.force_encoding("UTF-8") =~ /#{rule}/u

Couldn't build it with ctRegex (Some Error, then ran out of 
memory).


More information about the Digitalmars-d mailing list