arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1503.07387cs.IR
收藏

矢量化VByte解码

Vectorized VByte Decoding

Jeff Plaisance, Nathan Kurz, Daniel Lemire

摘要:

我们考虑VByte压缩的普遍技术,它将每个整数表示为可变长度的字节序列。每个字节的低7位对整数的一部分进行编码,每个字节的高位被保留作为连续标志。对于除最后一个字节之外的所有字节,此标志均设置为1,并且当遇到高位为0的字节时,每个整数的解码完成。VByte解码可能是性能瓶颈,特别是当编码整数的不可预测长度导致频繁的分支误预测时。以前使用SIMD向量指令加速VByte解码的尝试令人失望,促使Google等搜索引擎使用更复杂但解码速度更快的格式来处理性能关键型代码。我们的解码器(掩蔽VByte)比传统的标量VByte解码器快2到4倍,使格式在速度方面再次具有竞争力。

英文摘要:

We consider the ubiquitous technique of VByte compression, which represents each integer as a variable length sequence of bytes. The low 7 bits of each byte encode a portion of the integer, and the high bit of each byte is reserved as a continuation flag. This flag is set to 1 for all bytes except the last, and the decoding of each integer is complete when a byte with a high bit of 0 is encountered. VByte decoding can be a performance bottleneck especially when the unpredictable lengths of the encoded integers cause frequent branch mispredictions. Previous attempts to accelerate VByte decoding using SIMD vector instructions have been disappointing, prodding search engines such as Google to use more complicated but faster-to-decode formats for performance-critical code. Our decoder (Masked VByte) is 2 to 4 times faster than a conventional scalar VByte decoder, making the format once again competitive with regard to speed.

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

↑