3 ms·
For a while I've wanted a nice C library for an mmapped heap with allocation and common data structures (and maybe locks?) - all the usual stuff you'd expect in
by comex 13y ago
For a while I've wanted a nice C library for an mmapped heap with allocation and common data structures (and maybe locks?) - all the usual stuff you'd expect in a standard library, but with support for relative offsets instead of pointers, crash robustness, introspection, and other features required to work well with a persistent file. I do not know any library of this type that currently exists.
- jasonjackson 13y agoI believe this would qualify as a Java library https://github.com/peter-lawrey/Java-Chronicle https://github.com/peter-lawrey/Java-Chronicle "This library also supports distributed, durable, observable collections (Map, List, Set)" "It uses almost no heap, trivial GC impact, can be much larger than your physical memory size (only limited by the size of your disk) and can be shared between processes with better than 1/10th latency of using Sockets over loopback."
- sovande 13y agoSQLite
- jadc 13y agoYou can also check out libgist at http://gist.cs.berkeley.edu/libgist-2.0/ http://gist.cs.berkeley.edu/libgist-2.0/
- nly 13y agoFor C++: http://www.boost.org/doc/libs/1_55_0/doc/html/interprocess.html http://www.boost.org/doc/libs/1_55_0/doc/html/interprocess.h... "Boost.Interprocess offers useful tools to construct C++ objects, including STL-like containers, in shared memory and memory mapped files"
- mtdewcmu 13y agoBerkeleyDB?