Pith. sign in

OnPair: Short Strings Compression for Fast Random Access

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

We present OnPair, a dictionary-based compression algorithm designed to meet the needs of in-memory database systems that require both high compression and fast random access. Existing methods either achieve strong compression ratios at significant computational and memory cost (e.g., BPE) or prioritize speed at the expense of compression quality (e.g., FSST). OnPair bridges this gap by employing a cache-friendly dictionary construction technique that incrementally merges frequent adjacent substrings in a single sequential pass over a data sample. This enables fast, memory-efficient training without tracking global pair positions, as required by traditional BPE. We also introduce OnPair16, a variant that limits dictionary entries to 16 bytes, enabling faster parsing via optimized longest prefix matching. Both variants compress strings independently, supporting fine-grained random access without block-level overhead. Experiments on real-world datasets show that OnPair and OnPair16 achieve compression ratios comparable to BPE while significantly improving compression speed and memory usage.

fields

cs.DB 1

years

2026 1

verdicts

CONDITIONAL 1

representative citing papers

OptFSST: Optimized FSST String Compression

cs.DB · 2026-07-13 · conditional · novelty 5.0

OptFSST lifts FSST's average compression factor by 7.3% and FSST12's by 17.0% across 92 string columns using DP encoding, triple counting, and pruning; it also proves the symbol-table selection problem is NP-hard when the alphabet is part of the input.

citing papers explorer

Showing 1 of 1 citing paper.

  • OptFSST: Optimized FSST String Compression cs.DB · 2026-07-13 · conditional · none · ref 15 · internal anchor

    OptFSST lifts FSST's average compression factor by 7.3% and FSST12's by 17.0% across 92 string columns using DP encoding, triple counting, and pruning; it also proves the symbol-table selection problem is NP-hard when the alphabet is part of the input.