seomoz / bloomfilter-py Goto Github PK
View Code? Open in Web Editor NEWSimple and fast Bloom filter
License: MIT License
Simple and fast Bloom filter
License: MIT License
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.
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).
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.
Build budge does not show correctly status of the Travis build.
I assume, it is related to Travis build access. For example, I cannot see the logs, protocols, etc. in Travis.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.