Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些大向量,它们的数据来自硬盘文件的一些计算。我见过许多使用单个临时文件来缓存数据的软件。我很好奇如何做到这一点,但我不知道这种技术的名称。我想尽可能少地更改我的代码。谢谢你。
我的环境是 Windows/MFC/VC10/Boost。
我很确定您正在寻找内存映射文件。
http://www.boost.org/doc/libs/1_47_0/libs/iostreams/doc/classes/mapped_file.html