Comments (7)
What I meant is : you do not want to compute the bit size for your entire postlist and stick to it. The reason is that the compression rate will then be determined by your largest delta. If your posting list has millions of elements you will probably end up having on outlier ruin the entire compression.
from bitpacking.
Yes. I'll update doc and add an assert.
Your first block required numbits=10 and the second one numbits=15.
The second block was ignored, so only 10 bits were used. The first delta for which it was insufficient happened to be exactly 2^10=1024 but that was a coincidence.
from bitpacking.
Good point! Let's fix this.
from bitpacking.
@Kerollmops also, if you intend to use bitpacking for meili, make sure to bitpack on blocks with a limit size. (typically 128 ints.)
from bitpacking.
@fulmicoton, what do you mean by a block with a limit size?
from bitpacking.
Ok so the num_bits_sorted
kind of silently ignore the rest of the slice, right?
So what I have to do is to store the computed num_bits
for each block along with the block?
It makes perfect sense to me, thank you!
from bitpacking.
I have computed and added the num_bits
values in front of all the numbers blocks.
Thank you! This is fixed now!
(Whooops, the SIGSEGV is not fixed, I reopened)
from bitpacking.
Related Issues (16)
- please use runtime dispatch via target_feature HOT 12
- Delta for AVX2
- Preparing for rust 1.27
- error in bitbackerx8 HOT 1
- Compilation require heavy amount of memory HOT 2
- BitPacker4x incorrectly encodes bit width 32 sorted blocks HOT 10
- Have a light scalar implementation HOT 2
- Alternative data types for output? HOT 6
- BitPacker4x en/decoding problem HOT 3
- Example for compressing/decompressing an arbitrary number of u32 int values HOT 3
- Help / Question: is this applicable to parquet's RLE encoding? HOT 9
- 'unstable' Cargo feature does not exist HOT 1
- 64 bit version? HOT 2
- This crate vs tantivy-bitpacker HOT 2
- Remove simd bitpacking implementations for high bit width HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitpacking.