Web archives, query and proxy logs, and so on, can all be very large and highly repetitive; and are accessed only sporadically and partially, rather than continually and holistically. This type of data is ideal for compression-based archiving, provided that random-access to small fragments of the original data can be achieved without needing to decompress everything. The recent RLZ (relative Lempel Ziv) compression approach uses a semi-static model extracted from the text to be compressed, together with a greedy factorization of the whole text encoded using static integer codes. Here we demonstrate more precisely than before the scenarios in which RLZ excels. We contrast RLZ with alternatives based on block-based adaptive methods, including approaches that "prime" the encoding for each block, and measure a range of implementation options using both hard-disk (HDD) and solid-state disk (SSD) drives. For HDD, the dominant factor affecting access speed is the compression rate achieved, even when this involves larger dictionaries and larger blocks. When the data is on SSD the same effects are present, but not as markedly, and more complex trade-offs apply.
[1]
Alistair Moffat,et al.
Compression and Coding Algorithms
,
2005,
IEEE Trans. Inf. Theory.
[2]
Simon J. Puglisi,et al.
Relative Lempel-Ziv with Constant-Time Random Access
,
2014,
DCC.
[3]
Hugh E. Williams,et al.
Compressing Integers for Fast File Access
,
1999,
Comput. J..
[4]
Eyal Zohar,et al.
Compressing Yahoo Mail
,
2015,
2015 Data Compression Conference.
[5]
Alistair Moffat,et al.
In Search of Reliable Retrieval Experiments
,
2005
.
[6]
Justin Zobel,et al.
Relative Lempel-Ziv Factorization for Efficient Storage and Retrieval of Web Collections
,
2011,
Proc. VLDB Endow..
[7]
Edward R. Fiala,et al.
Data compression with finite windows
,
1989,
CACM.
[8]
Alistair Moffat,et al.
From Theory to Practice: Plug and Play with Succinct Data Structures
,
2013,
SEA.
[9]
Justin Zobel,et al.
Principled dictionary pruning for low-memory corpus compression
,
2014,
SIGIR.