Re:Writing a Memory Allocator for Fast Serialization
by hyc_symas on Tuesday July 04, 2017 @08:07AM
(#14695339)
You should have looked more closely at LMDB, which already solves this problem. Also you could look at LMDB's API for using fixed-address mmap, which lets you store pointer-based structures without any deserialization step at all.
This problem is generally hard. See [Ensuring data reaches disk](https://lwn.net/Articles/457667/)