TLDR Web Dev · ARTICLES & TUTORIALS

PARSING PROTOBUF LIKE NEVER BEFORE

mcyoung.xyz43 min read

Summary from the TLDR Web Dev newsletter

Hyperpb is a new high-performance Protobuf library written in Go. It brings optimizations from UPB to Go, outperforming competing parsers in benchmarks due to its runtime-dynamic nature and online PGO capabilities. This article goes over the internal architecture and key optimizations of hyperpb, including zerocopy strings, repeated preloads, map optimizations, and arena reuse.