std.xml2 (collecting features)

Richard Webb via Digitalmars-d digitalmars-d at puremagic.com
Wed May 6 02:36:44 PDT 2015


On 06/05/2015 07:31, Jacob Carlborg wrote:
> On 2015-05-06 01:38, Walter Bright wrote:
>
>> I haven't read the Tango source code, but the performance of it's xml
>> was supposedly because it did not use the GC, it used slices.
>
> That's only true for the pull parser (not sure about the SAX parser).
> The DOM parser needs to allocate the nodes, but if I recall correctly
> those are allocated in a free list. Not sure which parser was used in
> the test.
>

The direct comparisons were with the DOM parsers (I was playing with a D 
port of some C++ code at work at the time, and that is DOM based).

xmlp has alternate parsers (event driven etc) which were faster in some 
simple tests i did, but I don't recall if I did a direct comparison with 
Tango there.


More information about the Digitalmars-d mailing list