Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
change of memory-consumption constants (had been much too low)
orbiteref85fce6617c
diff --git a/source/de/anomic/kelondro/kelondroRecords.java b/source/de/anomic/kelondro/kelondroRecords.javaindex 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 thispublic 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 flagsprotected static final int CP_NONE = -1; // cache priority none; entry shall not be cachedprotected 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() {