GithubHelp home page GithubHelp logo

Comments (2)

lemire avatar lemire commented on June 5, 2024

i'll be using the 64bit version

The storage bound is for 32-bit roaring bitmaps. It is provided as a mathematical formula in the README and we have an actual function in the software. Both are precise, not vague.

We don't have bounds for the 64-bit version. It is a separate implementation. If you'd like to contribute a computed bound for the 64-bit version, a pull request is invited.

if i remove a bit (whatever position) from the roaring bitmap, does that mean the memory is cleared / shrink too?

We don't store individual bits/elements. The format is adaptative, with a container type model. We follow the roaring format specification: https://github.com/RoaringBitmap/RoaringFormatSpec

You may want to read the related research papers such as...

  • Daniel Lemire, Gregory Ssi-Yan-Kai, Owen Kaser, Consistently faster and smaller compressed bitmaps with Roaring, Software: Practice and Experience 46 (11), 2016. arXiv:1603.06549

any suggestions on how to convert a key to 64bit or 32bit roaring bitmap for use an a cache? is this advisable?
e.g. blake3.Sum32("key")

Please consult the README where we try to answer the general question as to when a compressed bitmap is appropriate https://github.com/RoaringBitmap/roaring#when-should-you-use-compressed-bitmaps

It looks to me like you might be in need of a Bloom filter (for example): https://github.com/bits-and-blooms/bloom

from roaring.

lemire avatar lemire commented on June 5, 2024

I am closing. This is not a valid issue. The reporter is invited to do some research, benchmarking, and so forth.

from roaring.

Related Issues (20)

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.