~/talk

Parsing Protobuf as Fast as Possible

Talkat P99 CONF 2025 · 2025-10-22..10-23· [compilers-and-language-design]
links:none on file
slides:none on file

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

  1. 0:00Introduction and background
  2. 1:33The problem with switch cases
  3. 3:38Threaded code interpreters
  4. 4:57VM instruction thunks
  5. 9:16Introducing hyperpb
  6. 10:44Architecture of hyperpb
  7. 13:59Compiler-based optimizations
  8. 18:26PGO and zero-copy parsing
  9. 20:21Benchmarks and conclusions
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.