Boost logo

Boost :

Subject: Re: [boost] [spirit][qi] Fastest way to parse file
From: Joel de Guzman (joel_at_[hidden])
Date: 2012-02-24 00:11:54

On 2/24/12 12:29 AM, Jeff Flinn wrote:
> Antony Polukhin wrote:
>> Hi,
>> Boost.Spirit documentation advices to use multi_pass iterators for
>> parsing files (or reading data to a STL container and then passing the
>> begin and end of the container to Spirit.Qi).
>> Much better solution would be to use a memory mapped file:

> I switched from interprocess::file_mapping to iostreams::mapped_file_source because of the
> formers lack of support for wchar_t/unicode file names. It's also directly usable with
> boost::filesystem::path. Here's an encapsulation of iterator/range view of the mapped file:


That would be a cool addition too. Thanks, Jeff.


Joel de Guzman

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