下载解压后直接根目录make然后就可以执行了./conHash
要加入到你的项目中,把src下面的东西copy进你的项目中就好了
由于STL里面有我想要的所有东西,所以我觉得没必要自己再去写一个红黑树啥的
由于2^32个key hash冲突的机会太小了,所以这样做比较完美的解决了这个问题
hash函数我用了MD5,你也可以传进去一个自己的hash函数,我也提供了响应的接口去检查你的hash函数是否合理
This project forked from shuaidongshuai/consistent-hashing
下载解压后直接根目录make然后就可以执行了./conHash
要加入到你的项目中,把src下面的东西copy进你的项目中就好了
由于STL里面有我想要的所有东西,所以我觉得没必要自己再去写一个红黑树啥的
由于2^32个key hash冲突的机会太小了,所以这样做比较完美的解决了这个问题
hash函数我用了MD5,你也可以传进去一个自己的hash函数,我也提供了响应的接口去检查你的hash函数是否合理
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.