• N
    use a Builder to create ConsistentHash<Node> · 9b7b1364
    Nicolas De Loof 提交于
    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)
    9b7b1364
ConsistentHash.java 10.7 KB