Large binary size using std.regex

Bayan Rafeh via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 23 16:40:12 PDT 2014


Compiling a simple program using std.regex:

import std.regex;
import std.stdio;

void main(string[] args) {
    auto re = regex(args[1], "g");
    foreach(line; stdin.byLine)
        if(line.match(re))
            writeln(line);
}


Renders a 1.6 megabyte binary. Is that normal?


More information about the Digitalmars-d-learn mailing list