Skip to content
Commit 9b7b1364 authored by Nicolas De Loof's avatar Nicolas De Loof
Browse files

use a Builder to create ConsistentHash<Node>

invoking add(Node, replica) for all nodes rebuild the internal Table many times. Using a builder, Table is only created (and sorted) once
also avoid creating a fresh new Hash object (java 8 lambdas, I miss you)
parent 66766953
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment