What is hyperpb?
mainhyperpb is a highly optimized dynamic message library for Protobuf designed for read-only workloads. It serves as a high-performance drop-in replacement for dynamicpb (the canonical solution in protobuf-go).
Key characteristics:
- Performance: Uses an efficient VM based on table-driven parsing (TDP), beating
dynamicpbby up to 10x and often outperforming generated code by 2-3x. - Read-Only: It is optimized for reading and reflection. Mutation is not supported; any operation attempting to mutate an already-parsed message will panic.
- Reflection-Based: Currently, it only supports manipulating messages through the
protoreflectAPI.