Optimize HashRing to avoid hashing for the common single-location case
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 30 Aug 2019 02:24:53 +0000 (19:24 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 30 Aug 2019 02:30:27 +0000 (19:30 -0700)
commitcfff40e900f5878e62d818985d8049357eccf099
treed0e8b7dab192c20ef60c3781489a8e80f7aee5f3
parent1d71306b5253124bc7ae7175712df7f2b06892fc
Optimize HashRing to avoid hashing for the common single-location case

Change-Id: I3423ac8bd5c56db60630257ac04706838a832d36
includes/libs/HashRing.php
tests/phpunit/includes/libs/HashRingTest.php