High performance XML parser

Michel Fortin michel.fortin at michelf.com
Fri Feb 4 16:22:44 PST 2011


On 2011-02-04 16:47:26 -0500, Tomek Sowiński <just at ask.me> said:

> Michel Fortin napisał:
> 
>> I agree it's important, especially when receiving XML over the network,
>> but I also think it's important to be able to be able to support
>> slicing. Imagine all the memory you could save by just making slices of
>> a memory-mapped file.
>> 
>> The difficulty is to support both models: the input range model which
>> requires copying the strings and the slicing model where you're just
>> taking slices of a string.
> 
> These are valid concerns. Yet, in overwhelming majority XML documents come
> from hard-drive and network -- these are the places we need to drill. I fea
> r that trying to cover every remote use case will render the library incomp
> rehensible.

A memory-mapped file comes from the hard drive too.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list