std.xml should just go

Walter Bright newshound2 at digitalmars.com
Thu Feb 3 19:07:22 PST 2011


Jonathan M Davis wrote:
> I only brought up Tango in the first place to point out that it is a goal of the 
> new std.xml to at least come close to Tango's performance in parsing XML, 
> because Tango's XML parser is very fast.

The way to get a high performance string parser in D is to take advantage of one 
of D's unique features - slices. Java, C++, C#, etc., all rely on copying 
strings. With D you can just use slices into the original XML source text. If 
you're copying the text, you're doing it wrong.


More information about the Digitalmars-d mailing list