TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Benchmarking 32bit integer key compression for a C++ Btree

36 点作者 cruppstahl大约 9 年前

2 条评论

mtanski大约 9 年前
We do something similar with compressing integers. Unlike the article we pick from 3 different compression schemes: SIMD FastPFOR, Bitpack (max value) and delta encoding.<p>Which one we pick depends on the distribution of the integers. FastPFOR we use when the values are mostly smallish but there&#x27;s an occasional large value. Works great. Bitpack we use when there is a tight band (ex. all values are ~5 -&gt; ~7 bits). Delta works well for (mono) increasing values.<p>Also, we&#x27;ve adapted most of these to 64bit integers since we work with those more commonly.
评论 #11477616 未加载
ddorian43大约 9 年前
How about using a bitlist&#x2F;bitmap&#x2F;bitset&#x2F;bitstring&#x2F;bitarray, maybe even a compressed one, like roaring-bitsets ?<p>Edit: question: is there any type of index better than compressed bitsets when you have per-column index and you want to AND,OR, basically combine them ?
评论 #11475410 未加载