From 02a4b4da03261ae3d3662322a955bb2f46d0e50a Mon Sep 17 00:00:00 2001 From: David Stuebe Date: Thu, 22 Aug 2019 20:57:23 -0400 Subject: [PATCH] Bump down the metadata cache size --- src/main/java/com/upserve/uppend/lookup/LookupMetadata.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/upserve/uppend/lookup/LookupMetadata.java b/src/main/java/com/upserve/uppend/lookup/LookupMetadata.java index ee2f2097..01b05cf7 100644 --- a/src/main/java/com/upserve/uppend/lookup/LookupMetadata.java +++ b/src/main/java/com/upserve/uppend/lookup/LookupMetadata.java @@ -31,7 +31,7 @@ public class LookupMetadata { private static final Logger log = org.slf4j.LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); // TODO make MAX_BISECT_KEY_CACHE_DEPTH configurable via the FileStoreBuilder - private static final int MAX_BISECT_KEY_CACHE_DEPTH = 13; // Size == 16_384 + private static final int MAX_BISECT_KEY_CACHE_DEPTH = 11; // Size == 4_096g private static final int MAX_TREE_NODES = treeSize(MAX_BISECT_KEY_CACHE_DEPTH); private final LookupKey[] bisectKeys = new LookupKey[MAX_TREE_NODES];