Parsing Protobuf as Fast as Possible
summary
hyperpb compiles a per-message optimizing compiler that emits a table-driven VM and memory layout so Go code parses protobufs via a threaded interpreter instead of a giant switch case. It uses a manual arena, table-driven VM, zero-copy parsing, and profile-guided layout to keep parser state in registers and avoid GC. Benchmarks claim 2–3× speedups over generated Go code, over 200 field representations selectable, and peak microbenchmarks reaching ~10 GB/s parse throughput.
AI-written summary · about
