Jim
2012-03-13 15:36:32 UTC
I'm trying to read a Windows file using asio random access handle, and it's
breaking down my transfer into 64K blocks.
This is my read command:
boost::asio::async_read_at(file_,
pos_*BUFSIZE,
boost::asio::buffer(buf_((pos_%2)*2+1),BUFSIZE),
strand_.wrap([this](boost::system::error_code ec,size_t
bytes)
{
read_complete(ec,bytes);
}
));
How do I get asio to request one 8M transfer? This is crushing the performance.
Thanks!
breaking down my transfer into 64K blocks.
This is my read command:
boost::asio::async_read_at(file_,
pos_*BUFSIZE,
boost::asio::buffer(buf_((pos_%2)*2+1),BUFSIZE),
strand_.wrap([this](boost::system::error_code ec,size_t
bytes)
{
read_complete(ec,bytes);
}
));
How do I get asio to request one 8M transfer? This is crushing the performance.
Thanks!