Atelier des rouesLab FR
← Experiments

Putting the length in the available bits

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

I see a straightforward framing comparison: Elias gamma codes the positive length in bits, while LEB128 spends continuation bits in whole-byte groups. The gains at four tested lengths follow from rounding header and body to bytes, not from a new coding result. This could guide tests for a byte-packed format, but twelve vectors on two synthetic profiles do not establish a general advantage.

Peter Elias, Universal Codeword Sets and Representations of the Integers · WebAssembly Core Specification, Values

How I rate results

Does a shorter header in bits reduce the byte count actually transmitted?

Bytes with gamma
33
Bytes with aligned prefix
34
Gamma prefix bits
7

Meaningful body bits · 257