Coder Social home page Coder Social logo

Comments (6)

satta avatar satta commented on May 30, 2024

It would also be a good idea to compare the GtCompactUlongStore with the other byte-compressed array classes in core/ (BitPackArray/BitPackString/...) in terms of functionality and efficiency and maybe consolidate them such that only one `good'' implementation remains. These classes in core/ are not really widely used ayway IIRC.

from genometools.

Garonenur avatar Garonenur commented on May 30, 2024

just for future reference:

  • core/bitpackarray.h
    • is a simplyfied interface to core/bitpackstring.h
    • static, # of elements has to be known
  • core/bitpackstring.h
    • from Thomas,
    • some automatic generated code
      • seperate code for different uint_X types
    • many inline functions
    • some code duplication,
    • not a class
    • complicated code.
  • core/compact_ulong_store.h
    • from Stefan
    • very simple interface
    • static, # of elements has to be known

from genometools.

gordon avatar gordon commented on May 30, 2024

If it would be possible to remove the bitpackstring code that would be great. The automatically generated code is very hard to maintain.

from genometools.

satta avatar satta commented on May 30, 2024

We should figure out whether one of these actually subsumes one (or all?) of the others. We definitely should remove this redundancy and stick with one GOOD implementation (and prefereably not the autogenerated one).

from genometools.

satta avatar satta commented on May 30, 2024

If I run git grep bitpackstring.h it turns out that the bitpackstring stuff is only used in the simplified bitpackarray interface (which is used in Readjoiner and the Encseq implementation) and the match/eis-* packed index code. I only know how the Encseq code uses this functionality, and it is simply sequential writing and random access to a compressed 32-bit integer array of a given length. I guess that could be done with the GtCompactUlongStore as well, as long as it is (made?) Mapspec-compatible.
I don't know about the other use cases, especially Readjoiner and the packed index stuff.

from genometools.

ggonnella avatar ggonnella commented on May 30, 2024

I checked the places in Readjoiner where bitpackarray.h is used. The operation needed there are new/delete, get/set a value, get total size of the representation (for writing to file); these are all operations also available with compact_ulong_store.h. Therefore, as far as I am concerned, GtBitpack can be deleted.

from genometools.

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.