Another variable-length integer encoding

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

JetBrains - Tell us how you use coding tools. You may win a prize!
Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
surveys.jetbrains.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. streamvbyte

    Fast integer compression in C using the StreamVByte codec

    Stream VByte[1,2,3] is not far away from that idea, storing the packed lengths in a separate stream from the data bytes. (There’s also a more conventional interleaved design in varint-G8IU, but Stepanov decided to fuck everyone over and patented that.)

    [1] https://lemire.me/blog/2017/09/27/stream-vbyte-breaking-new-...

    [2] https://arxiv.org/abs/1709.08990

    [3] https://github.com/lemire/streamvbyte

  2. JetBrains

    Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!

    JetBrains logo
  3. Protobuf

    Protocol Buffers - Google's data interchange format

    Unary length prefix is a solid technique. I would be careful with the performance claims, though. Sometimes what the machine can do is surprising and the performance of a system that looks like it needs to loop and branch is faster than you expected. The protobuf project, unsurprisingly for a project of its age, has several different varint parsing strategies. One is described at https://github.com/protocolbuffers/protobuf/blob/main/src/go... and another at https://github.com/protocolbuffers/protobuf/blob/main/src/go...

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Parsing Protobuf Like Never Before

    5 projects | news.ycombinator.com | 17 Jul 2025
  • C++: zero-cost static initialization

    2 projects | news.ycombinator.com | 18 Jul 2025
  • Show HN: BinaryRPC – Lightweight WebSocket-based RPC framework in modern C++

    5 projects | news.ycombinator.com | 12 Jul 2025
  • The provenance memory model for C

    2 projects | news.ycombinator.com | 30 Jun 2025
  • Getting Started With gRPC in Golang

    2 projects | dev.to | 3 Apr 2025

Did you know that C++ is
the 7th most popular programming language
based on number of references?