[dmd-beta] D2 2.058 alpha
Jesse Phillips
jesse.k.phillips at gmail.com
Wed Feb 8 13:14:36 PST 2012
Ok, it is the new std.regex engine, so it wouldn't be a regression from 2.057.
With
2.056: 0.22sec
2.058: 7.65sec
import std.file;
import std.string;
import std.datetime;
import std.regex;
private int[string] model;
void main() {
auto name = "english.dic";
foreach(w; std.file.readText(name).toLower.splitLines)
model[w] += 1;
foreach(w; std.string.split(readText(name)))
if(!match(w, regex(r"\d")).empty)
{}
}
More information about the dmd-beta
mailing list