Boost logo

Boost :

Subject: Re: [boost] Designing a multi-threaded file parser
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2016-04-22 08:18:29

On 21 Apr 2016 at 20:47, Aaron Boxer wrote:

> The read thread will spend a lot of time waiting for file IO to
> complete. Would it be faster to us the ASIO classes to do the reading?

No, it won't.

Memory mapped file i/o is almost guaranteed to be the correct
technique to use here. Simply map the entire file into memory, and
fire threads at processing it. Let the kernel figure out how best to
do the i/o.


ned Productions Limited Consulting

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