memory map huge file with boost
- by HaveF
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!