On 02/04/2011 05:07 AM, Walter Bright wrote:
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.

.NET and Qt do have slices of some kind:

http://msdn.microsoft.com/en-us/library/1hsbd92d.aspx
http://doc.qt.nokia.com/latest/qstringref.html#details

I am not sure whether their XML libraries use those.

Reply via email to