From ef85fce6617c94540e9e46549fcaa88f01ad18f2 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 21 Sep 2005 15:32:49 +0000 Subject: [PATCH] change of memory-consumption constants (had been much too low) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@764 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/kelondro/kelondroRecords.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/kelondro/kelondroRecords.java b/source/de/anomic/kelondro/kelondroRecords.java index f08333ece..1ccb2c9ba 100644 --- a/source/de/anomic/kelondro/kelondroRecords.java +++ b/source/de/anomic/kelondro/kelondroRecords.java @@ -83,6 +83,10 @@ public class kelondroRecords { public static final long memBlock = 500000; // do not fill cache further if the amount of available memory is less that this public static final long memKcolb = 10000000; // if the amount of available memory is greater than this, do not use cache size to block, simply use memory + // memory calculation + private static final int element_in_cache = 52; + private static final int cache_control_entry = 96; + // caching flags protected static final int CP_NONE = -1; // cache priority none; entry shall not be cached protected static final int CP_LOW = 0; // cache priority low; entry may be cached @@ -330,7 +334,7 @@ public class kelondroRecords { } private int cacheChunkSize(boolean cacheControl) { - return this.headchunksize + 14 + ((cacheControl) ? 16 : 0); + return this.headchunksize + element_in_cache + ((cacheControl) ? cache_control_entry : 0); } public int cacheChunkSize() {