Coder Social home page Coder Social logo

bloomfilter-py's People

Contributors

b4hand avatar scriptedworld avatar vadim-ex avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bloomfilter-py's Issues

A few API proposals

There were a few development from August, and I would like to propose a few improvements that I can implement (quickly implement). I understand that it would inevitably cause followup refactoring in Moz code, so I would let it to your judgement. My reasoning is driven by (now) open-source nature of the repo.

  1. add_by_hash:

    • With addition of the previous state (as returned value) to add_by_hash the name becomes somewhat misguiding. I would propose to change it to update_by_hash.

    • It is especially true if we would accept previous proposal. I would propose to make update_by_hash to return true/false in sync with test_by_hash.

    • (premature optimization?) Should we implement add_by_hash that returns no result? It would be a bit faster if the status is not needed, and would make update_by_hash more easy to understand (as optimized conjunction of two operations). The code would be duplicated, of course, but the duplication would be minimal (for example, basically no test-code duplication).

  2. I dislike name Rotating. It is well understood in Moz, and probably has historical motivation, but in open world it seems sub-par. Can we rename it to RotatingBloomFilter, please? Again, I appreciate the time it would require refactoring of client code.

@b4hand @dlecocq @tammybailey @lindseyreno

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.