Use ConsistentHash's mass-add method.
Calling hash.add() in a tight loop gets very expensive. With a good-sized queue & slave pool, this cost tens of seconds, but now it costs tens of milliseconds.
Loading
Please register or sign in to comment
Calling hash.add() in a tight loop gets very expensive. With a good-sized queue & slave pool, this cost tens of seconds, but now it costs tens of milliseconds.