On 2011-02-04 16:47:26 -0500, Tomek Sowiński <j...@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.for...@michelf.com
http://michelf.com/

Reply via email to