"the parser does not build objects across the boundary at all. It copies its arrays into one contiguous binary buffer and lets the consumer decode lazily on its own side. The serialization is close to a memory copy." www.arshad.fyi/writings/eng...
Engineering High-Performance Parsers with Data-Oriented Design
How designing the data structure first (flat arrays of indices instead of a pointer tree) makes a parser fast and collapses memory layout, allocation, and serialization into one decision.
arshad.fyi