On Optimally Partitioning Variable-Byte Codes

Giulio Ermanno Pibiri, Rossano Venturini
4/29/2018
cs.IRcs.DB

Official code: jermp/opt_vbyte (17 stars, C++, MIT, last commit 2021-11-10).

Abstract

The ubiquitous Variable-Byte encoding is one of the fastest compressed representation for integer sequences. However, its compression ratio is usually not competitive with other more sophisticated encoders, especially when the integers to be compressed are small that is the typical case for inverted indexes.

Show full abstract

This paper shows that the compression ratio of Variable-Byte can be improved by 2x by adopting a partitioned representation of the inverted lists. This makes Variable-Byte surprisingly competitive in space with the best bit-aligned encoders, hence disproving the folklore belief that Variable-Byte is space-inefficient for inverted index compression. Despite the significant space savings, we show that our optimization almost comes for free, given that: we introduce an optimal partitioning algorithm that does not affect indexing time because of its linear-time complexity; we show that the query processing speed of Variable-Byte is preserved, with an extensive experimental analysis and comparison with several other state-of-the-art encoders.

View on arXivView PDF

Code Implementations(1)

jermp/opt_vbyteOfficial100%
MIT

Optimal partitioning of Variable-Byte codes for better compression and fast decoding.

172C++, CMay 31, 20185 years agoMIT
inverted-indexvariable-byte-encoding

Similar Papers

Cite this paper

@article{pibiri2018optimally,
  title  = {On Optimally Partitioning Variable-Byte Codes},
  author = {Giulio Ermanno Pibiri and Rossano Venturini},
  year   = {2018},
  eprint = {1804.10949},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1804.10949}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1804.10949.svg)](https://codeofpaper.com/paper/1804.10949)

Discussion