|
|
|
|
|
by arghwhat
2945 days 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. |
|
[0] - https://capnproto.org/index.html