memory map huge file with boost

Posted by HaveF on Programmers See other posts from Programmers or by HaveF
Published on 2012-11-05T02:11:53Z Indexed on 2012/11/05 5:13 UTC
Read the original article Hit count: 266

Filed under:
|

I want to handle huge files(TB), after several searches, I find boost could be help

boost/interprocess/file_mapping.hpp

and I also find the demo code.

Because the file that I read is too large(TB), so I think I should create a fixed-size of memory(say 1GB), and remap it when the data isn't on the page. But I don't know how to write this part.

I only find another web page, which use "boost.iostreams" to handle this problem.

I should use the boost.iostreams? or boost.interprocess.file_mapping? (if this one, please show me some codes), thanks!

© Programmers or respective owner

Related posts about c++

Related posts about boost