Compiling in std.regex affecting performance
Andrej Mitrovic
andrej.mitrovich at gmail.com
Fri Jan 6 18:12:39 PST 2012
Oooh I've just realized something, the *compilation* calls are what's
destroying the performance. I was using "dmd test.d && test.exe"
instead of just "test.exe" and this would generate a new exe which
screwed up the results.
So regex has nothing to do with it. Still, some linkers perform better:
$ dmd -c test.obj
$ link test.obj
Average is ~700usecs. But with ulink:
$ ulink test.obj
Average is ~380 usecs. Interesting!
More information about the Digitalmars-d
mailing list