news
6

Variable-Length Integers in Go
2026-12-06A new technical piece benchmarks variable-length integer encodings in Go, comparing Protobuf's LEB128, QUIC's varint, OmniBuf, Prefix-9, MessagePack, and plain fixed-width 64-bit integers. The analysis weighs tradeoffs across wire size, CPU speed, and compressibility, along with the cost of branching in decode paths — helping developers pick an encoding based on whether bandwidth or raw decoding speed matters most for their use case.
Comments
0Discuss on Hacker NewsOnly full members can comment
Log in to express your opinion.
No comments yet.