$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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.
Niall
-- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/