Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
some small attribut changes regarding cache flush
orbiterf2421f6a47e4
diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.javaindex 757e6bef7..456ab49ea 100644--- a/source/de/anomic/plasma/plasmaWordIndex.java+++ b/source/de/anomic/plasma/plasmaWordIndex.java@@ -168,9 +168,9 @@ public final class plasmaWordIndex {public synchronized void flushCacheSome() {ramCache.shiftK2W();- int flushCount = ramCache.wSize() / 1000;- if (flushCount > 50) flushCount = 50;- if (flushCount < 3) flushCount = 3;+ int flushCount = ramCache.wSize() / 500;+ if (flushCount > 70) flushCount = 70;+ if (flushCount < 5) flushCount = 5;flushCache(flushCount);}diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.javaindex a3d75a09d..d3038a3f3 100644--- a/source/de/anomic/plasma/plasmaWordIndexCache.java+++ b/source/de/anomic/plasma/plasmaWordIndexCache.java@@ -60,7 +60,7 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {// environment constantsprivate static final String indexArrayFileName = "indexDump1.array";- public static final int wCacheReferenceLimit = 50;+ public static final int wCacheReferenceLimit = 64;public static final long wCacheMaxAge = 1000 * 60 * 30; // milliseconds; 30 minutespublic static final long kCacheMaxAge = 1000 * 60 * 2; // milliseconds; 2 minutes