Clearly separated notion of entries and chunks, averageKeySize()/ValueSize() instead of keySize()/valueSize(), minor fixes and refactorings

This commit is contained in:
leventov
2014-12-26 05:22:54 +07:00
parent 06fcaa4c71
commit 81f6142af7
44 changed files with 923 additions and 587 deletions
@@ -69,12 +69,10 @@ public class MarkTest {
private static void test(Function<ChronicleMapBuilder<Integer, Integer>,
ChronicleMap<Integer, Integer>> createMap) {
long ms = System.currentTimeMillis();
double entriesWithMargin = ENTRIES * 1.1;
long actualEntriesPerSegment = (1L << 17) / 3L;
try (ChronicleMap<Integer, Integer> map = createMap.apply(ChronicleMapBuilder
.of(Integer.class, Integer.class)
.actualSegments((int) (entriesWithMargin / actualEntriesPerSegment))
.actualEntriesPerSegment(actualEntriesPerSegment)
.entries(ENTRIES)
.entriesPerSegment((1 << 17) / 3)
.putReturnsNull(true)
.removeReturnsNull(true))) {