Get the latest tech news

Hyperpb: Faster dynamic Protobuf parsing that's faster than generated code


Today we’re announcing public availability of hyperpb, a fully-dynamic Protobuf parser that is 10x faster than dynamicpb, the standard Go solution for dynamic Protobuf. In fact, it’s so efficient that it’s 3x faster than parsing with generated code! It also matches or beats vtprotobuf’s generated code at almost every benchmark, without skimping on correctness.

Building a dynamic Protobuf parser with the throughput to match (or outperform) ahead-of-time generated code unlocks enormous possibilities. hyperpb.CompileFileDescriptorSet calls into hyperpb’s compiler, which lays out optimized structs for each message type to minimize memory usage (not unlike the new Opaque API, but more aggressive). hyperpb also includes advanced features such as manual memory re-use, performance tuning knobs, “unsafe” modes, and profile-guided optimization.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Protobuf

Protobuf

Photo of Code

Code

Photo of 10x

10x

Related news:

News photo

Hacker Plants Computer 'Wiping' Commands in Amazon's AI Coding Agent | Hacker was able to add code to Amazon’s popular ‘Q’ AI assistant for VS Code, which Amazon then pushed out to users.

News photo

From Cartography to Code: Architectures of Power at the Venice Biennale 2025

News photo

Show HN: The Magic of Code – book about the wonders and weirdness of computation