arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1603.06549cs.DB
收藏

与Roaring一样更快更小的压缩位图

Consistently faster and smaller compressed bitmaps with Roaring

Daniel Lemire, Gregory Ssi-Yan-Kai, Owen Kaser

摘要:

压缩位图索引用于数据库和搜索引擎。已经提出了许多位图压缩技术,几乎所有都主要依赖于行程长度编码(RLE)。然而,对于未排序的数据,我们可以使用混合压缩技术来获得更好的性能,该技术在两级树中使用未压缩的位图和打包数组。这种技术的一个实例,咆哮,最近被提出。由于其良好的性能,它已被多个生产平台采用(例如,Apache Lucene、Apache Spark、Apache Kylin和Druid)。然而,在某些情况下,行程长度编码的位图比原始的Roaring位图小-通常是当数据被排序时,位图包含长的可压缩行程。为了更好地处理这些情况,我们构建了一个新的Roaring混合体,它结合了未压缩的位图,压缩数组和RLE压缩段。其结果是一个新的咆哮格式,压缩更好。总的来说,我们的Roaring的新实现可以比传统的基于RLE的替代方案(WAH,Concise,EWAH)的实现快几倍(高达两个数量级),同时压缩得更好。我们回顾了使这些良好结果成为可能的设计选择和优化。

英文摘要:

Compressed bitmap indexes are used in databases and search engines. Many bitmap compression techniques have been proposed, almost all relying primarily on run-length encoding (RLE). However, on unsorted data, we can get superior performance with a hybrid compression technique that uses both uncompressed bitmaps and packed arrays inside a two-level tree. An instance of this technique, Roaring, has recently been proposed. Due to its good performance, it has been adopted by several production platforms (e.g., Apache Lucene, Apache Spark, Apache Kylin and Druid). Yet there are cases where run-length encoded bitmaps are smaller than the original Roaring bitmaps---typically when the data is sorted so that the bitmaps contain long compressible runs. To better handle these cases, we build a new Roaring hybrid that combines uncompressed bitmaps, packed arrays and RLE compressed segments. The result is a new Roaring format that compresses better. Overall, our new implementation of Roaring can be several times faster (up to two orders of magnitude) than the implementations of traditional RLE-based alternatives (WAH, Concise, EWAH) while compressing better. We review the design choices and optimizations that make these good results possible.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑