3rd-Eden / node-hashring

hashring is a consistent hashing algorithm for Node.js that is compatible with libketama and python's hash_ring package
MIT License
350 stars 57 forks source link

[bisection] performance optimization #1

Closed indutny closed 13 years ago

indutny commented 13 years ago

Shift right should be much faster than dividing float numbers and passing to Math.floor

3rd-Eden commented 13 years ago

Thanks allot for the pull request, landed in master.