Giter Site home page Giter Site logo

Question about decoding speed about vtenc HOT 4 CLOSED

vteromero avatar vteromero commented on August 27, 2024
Question about decoding speed

from vtenc.

Comments (4)

vteromero avatar vteromero commented on August 27, 2024

Thank you @mavam!

I think it's a bit of both.

I haven't spent much time in trying to optimise the library in terms of performance and I believe that there is room for improvement. But at this stage, I'd rather get feedback and think about next steps.

In theory, the decoding algorithm runs in O(nW / 2) in best case and O(nW) in worst case, where n is the size of the input and W corresponds to the word size (8, 16, 32 or 64). That's true if we consider that calculating the number of bits of a value and reading bits from a bit stream are both constant-ish.

from vtenc.

mavam avatar mavam commented on August 27, 2024

Good to know that you haven't spent a lot of effort into tuning. Linear performance in the input is definitely something we can work with conceptually.

For us, we'd be interested in integrating VTEnc as an alternative representation to EWAH bitmaps. The binary operations we perform on sorted integer lists are intersection, union, and negation/complement. The unary operations are mostly rank and select queries.

(Our basic abstrction might serve as a reference for the operations to be performed, but the name will change to something more general in the future, i.e., it will be more than just a bitmap-based abstraction.)

from vtenc.

vteromero avatar vteromero commented on August 27, 2024

I'm afraid that VTEnc doesn't support bitmap operations, it's a pure compression algorithm for sorted lists of integers.

from vtenc.

mavam avatar mavam commented on August 27, 2024

Understood. I didn't mean to diverge the discussion, my comment was a bit more general: I consider a bitmap an isomorphic representing of a sorted list of integers where the indices of 1-bits are the values. So for example, intersecting a bitmap with a list of integers works just fine when abstracting a way the implementation details.

from vtenc.

Related Issues (4)

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.