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:
>> 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 http://www.boostpro.com http://boost-spirit.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk