3 ms·
It is of course important to point out that this is akin to casting a struct to a void pointer and writing it to a file (it's just faster), which works extremel
by arghwhat 8y ago
It is of course important to point out that this is akin to casting a struct to a void pointer and writing it to a file (it's just faster), which works extremely well but requires the data structures to have a stable memory representation. If one changes the structs in any way, old persistent data will look like garbage. One should therefore still have an extremely well-defined and versioned system for managing persistent data, rather than just arbitrarily allocating objects on the persistent heap.
It's still neat, though.
- pbalcer 8y agoYup. In this aspect libpmemobj could be compared to how Cap'N Proto [0] works. And of course, this has some trade-offs that users need to be aware of. [0] - https://capnproto.org/index.html https://capnproto.org/index.html