Yandex Open-Sources YaFF: A Zero-Copy Wire Format for Protobuf With Near-Struct Read Speed
10–20% CPU savings. That's what Yandex's open-source YaFF achieves in production ad systems by reimagining how AI infrastructure serializes data.

Why it matters
Yandex's YaFF demonstrates that infrastructure efficiency wins at scale come from optimizing data serialization layers—critical for recommendation systems and inference pipelines handling billions of requests. This matters to builders running large-scale AI workloads where CPU overhead directly impacts margins.
The key facts
7 to knowYandex open-sources YaFF: zero-copy wire format for Protobuf
Flat Layout achieves read speeds within 1.2× of raw C++ struct performance
Four layout options: Fixed, Flat, Sparse, Dynamic
Production deployment in advertising recommendation system
10–20% CPU savings reported at scale
Maintains .proto as single source of truth
Flat Layout reads within 1.2× of raw C++ struct performance
Go to the source
MarkTechPostmarktechpost.com
Publisher excerpt: In this article we look at YaFF, Yandex's open-source zero-copy wire format for the Protobuf ecosystem. We keep the .proto file as the single source of truth, changing only how data sits in memory. We walk through its four layouts — Fixed, Flat, Sparse, and Dynamic — and the benchmark where Flat…