<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.1.92">
</HEAD>
<BODY>
<BR>
Ok, here a test:<BR>
<BR>
test.d :<BR>
<BR>
import std.xml;<BR>
import std.stdio;<BR>
import std.conv;<BR>
<BR>
int main(string[] args)<BR>
{<BR>
        if (args.length != 2)<BR>
        {<BR>
                writeln("Usage: ", args[0], " file.xml");<BR>
                return 0;<BR>
        }<BR>
<BR>
        string content = to!string(std.file.read(args[1]));<BR>
        <BR>
        try{<BR>
                check(content);<BR>
        } catch (CheckException ex) { writeln("Exception: ", ex); }<BR>
        return 0;<BR>
}<BR>
<BR>
<BR>
dmd -c test.d && gcc test.o -lphobos2 -lrt -lpthread -o testgcc<BR>
vs<BR>
dmd -c test.d && dmd test.o -oftestd<BR>
<BR>
try this code using a long xml file (tested here with a 2.0 mb list of italian cities) ...<BR>
<BR>
Il giorno mer, 18/01/2012 alle 15.27 +0100, Andrea Fontana ha scritto:<BR>
<BLOCKQUOTE TYPE=CITE>
    I can't understand why it's 22 times slower...<BR>
    <BR>
    Il giorno mer, 18/01/2012 alle 14.54 +0100, Trass3r ha scritto: 
    <BLOCKQUOTE TYPE=CITE>
<PRE>
> Configuration:
> Ubuntu 11.10 64bit
> DMD64 D Compiler v2.056
> gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

? dmd also uses ld to link.
</PRE>
    </BLOCKQUOTE>
    <BR>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>