std.regex performance

David Nadlinger see at klickverbot.at
Wed Feb 8 14:21:35 PST 2012


On 2/8/12 10:44 PM, Jesse Phillips wrote:
> foreach(w; std.string.split(readText(name)))
> if(!match(w, regex(r"\d")).empty)
> {}
> }

Could it be that you are rebuilding the regex engine on every iteration 
here?

David



More information about the Digitalmars-d mailing list