Boost logo

Boost :

Subject: Re: [boost] [GSoC] Boost.XML
From: Phil Endecott (spam_from_boost_dev_at_[hidden])
Date: 2010-03-21 09:25:04

Mathias Gaunard wrote:
> Phil Endecott wrote:
>> However, recently I needed something that used less memory. I wanted to
>> process a very large file without ever having all of it in memory
>> (imagine e.g. loading a database). So I wrote something where the
>> element and attribute iterators (etc.) are just pointers into the
>> (memory-mapped) XML source. When an iterator is incremented it steps
>> through the source looking (textually) for the start of the next element
>> or attribute (etc.). The result is something that uses almost no memory
>> and is fast for the sorts of access pattern that I needed.
> This is exactly the kind of approach I find interesting. Could you share
> this code?

Oh dear, I feared someone would ask that. OK, as long as you promise
to remember that I wrote this in a hurry, you can find it here:

That currently says "GPL" but I could change that to Boost if people want.

Regards, Phil.

Boost list run by bdawes at, gregod at, cpdaniel at, john at