Use consistent hashing and thread local caches of StringBuilders.

This commit is contained in:
Peter Lawrey
2014-10-29 13:46:40 +00:00
parent 71a8d7452c
commit 4d7dd56c43
9 changed files with 62 additions and 45 deletions
@@ -55,7 +55,7 @@ public class EntryCountMapTest {
@Test
public void testSmall() throws Exception {
for (int i = 0; i < 60; i++) {
for (int i = 0; i < 6; i++) {
// regression test.
for (int s : new int[]{1, 2, 4, 8}) {
if (s <= 4)
@@ -77,7 +77,7 @@ public class EntryCountMapTest {
@Test
public void testMedium() throws Exception {
for (int i = 0; i < 10; i++) {
for (int i = 0; i < 1; i++) {
// regression test.
int s = 16;
testEntriesMaxSize(s, 512, 1000, i);