4 ms·
How about FlatBuffers, making the file format and in-memory format one and the same? https://google.github.io/flatbuffers/ https://google.github.io/flatbuffers
by sprucely 8y ago
How about FlatBuffers, making the file format and in-memory format one and the same?
https://google.github.io/flatbuffers/ https://google.github.io/flatbuffers/
- thechao 8y agoSo, this is literally the whole point of this article: it turns out that that is a bad idea, in the long run.
- rdtsc 8y agoIt seems unrelated in a way. Flatbuffers and Protobufs are ways to serialize data. The fact that FlatBuffers happen to serialize such that the persistent format is the same as in the in-memory representation is an optimization. It is just as easy to shoot yourself in the foot with one as is with the other in regards to what the article talks about. That is could choose do dump your objects as vertices only instead of including edge information with protobufs, json, flatbuffers, xml, s-expressions etc. The main point was that serialization needs to be thought about very well, because it will involved compatibility issues. It shouldn't be an automating stream of current object structures to disk.