Coder Social home page Coder Social logo

Comments (7)

fulmicoton avatar fulmicoton commented on June 3, 2024 1

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.

fulmicoton avatar fulmicoton commented on June 3, 2024 1

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.

fulmicoton avatar fulmicoton commented on June 3, 2024

Good point! Let's fix this.

from bitpacking.

fulmicoton avatar fulmicoton commented on June 3, 2024

@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.

Kerollmops avatar Kerollmops commented on June 3, 2024

@fulmicoton, what do you mean by a block with a limit size?

from bitpacking.

Kerollmops avatar Kerollmops commented on June 3, 2024

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.

Kerollmops avatar Kerollmops commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.