ken*_*ytm 9 c c++ serialization data-structures
我有一些大型数据结构(N> 10,000),通常只需要创建一次(在运行时),之后可以多次重复使用,但需要非常快速地加载.(它用于iPhoneOS上的用户输入处理.) - mmap一个文件似乎是最好的选择.
C++(或C)是否有任何数据结构库?沿线的东西
ReadOnlyHashTable<char, int> table ("filename.hash");
// mmap(...) inside the c'tor
...
int freq = table.get('a');
...
// munmap(...); inside the d'tor.
Run Code Online (Sandbox Code Playgroud)
谢谢!
我自己写了一个类似哈希表的类,但我觉得很难维护,所以我想看看是否已有解决方案.图书馆应该
假设:
float等)无关紧要,因为它仅在本地使用.struct它们的数据.指针不会出现.PS Can Boost.intrusive帮助?