4 ms·
Flatbuffers is pretty great, one side benefit of these types of technologies is you can also use them to structure your memory accesses. I've done this in Java
by vvanders 8y ago
Flatbuffers is pretty great, one side benefit of these types of technologies is you can also use them to structure your memory accesses.
I've done this in Java to do cache aware reading to pretty great success.
- vladf 8y agoDo you mind elaborating?
- blitmap 8y agoI am not OP but I'm imagining data-oriented design. So like, things are structured and then serialized - and at some other end deserialized in place ready to read cache-coherently?
- vvanders 8y agoYup pretty much. Zero-copy deserialization implies one large read into a block of memory(or mmap) which forces a specific layout. From there it's straightforward to follow standard data oriented design principals.