HyperPB: A Blazing-Fast Go Protobuf Parser Outperforming UPB
2025-07-24

This article introduces HyperPB, a remarkably fast Protobuf parser written in Go. Building upon the strengths of UPB (one of the fastest Protobuf runtimes), HyperPB leverages Go's register ABI and lack of undefined behavior for significant optimizations. Employing JIT compilation and online PGO, it surpasses both Protobuf Go's generated code and vtprotobuf in benchmark tests. At its core is a table-driven interpreter, enhanced with clever optimizations like zero-copy techniques, hot/cold data splitting, and arena reuse.
Development