[xmlp] the recent garbage collector performance improvements
a
a at a.com
Wed Feb 1 20:53:01 PST 2012
It looks like someone wrote it a year ago, but it was never added
to phobos:
http://www.digitalmars.com/d/archives/digitalmars/D/announce/std.xml2_candidate_19804.html
.
On Thursday, 2 February 2012 at 04:39:11 UTC, dsimcha wrote:
> Wait a minute, since when do we even have a std.xml2? I've
> never heard of it and it's not in the Phobos source tree (I
> just checked).
>
> On Thursday, 2 February 2012 at 00:41:31 UTC, Richard Webb
> wrote:
>> On 01/02/2012 19:35, dsimcha wrote:
>>> I'd be very
>>> interested if you could make a small, self-contained test
>>> program to use
>>> as a benchmark.
>>>
>>
>>
>> The 'test' is just
>>
>> /////////////////
>> import std.xml2;
>>
>> void main()
>> {
>> string xmlPath = r"test.xml";
>>
>> auto document = DocumentBuilder.LoadFile(xmlPath, false,
>> false);
>> }
>>
>> /////////////////
>>
>> It's xmlp that does all the work (and takes all the time).
>>
>>
>> I'll see about generating a simple test file, but basically:
>>
>> 50000 top level nodes
>> each one has 6 child nodes
>> each node has a single attribute, and the child nodes each
>> have a short text value.
>>
>>
>> Parsing the file with DMD 2.057 takes ~25 seconds
>>
>> Parsing the file with DMD 2.058(Git) takes ~6.1 seconds
>>
>> Parsing the file with DMD 2.058, with the GC disabled during
>> the LoadFile call, takes ~2.2 seconds.
>>
>>
>> For comparison, MSXML6 takes 1.6 seconds to load the same file.
More information about the Digitalmars-d
mailing list