Giter Site home page Giter Site logo

bitvector_simd's Introduction

bitvector_simd's People

Contributors

horasal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ekmett atouchet

bitvector_simd's Issues

no len()?

is it just me or is there no way for a user to query for the value of nbits to know the length of a bitvector produced with this api?

from_slice behavior

it seems to me that the from_slice behavior is inconsistent in the presence of repeated indices.

It looks like it assumes that setting from a slice will have at least as many elements as there are in the slice, but if there are repeats then the slice will be set to a larger capacity than is required.

If this tracked nbits separately from the array length of the backing store, then you could still guess at the capacity requirement of the slice by dividing that slice size by 512 (rounded up) and using it as a starting guess at how many BitContainers to put in the backing array, update nbits as you scan through the slice to the highest watermark actually observed, and then trim the backing vec's size back down to fit the data you have.

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.