Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

some small attribut changes regarding cache flush

orbiterf2421f6a47e4
diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.java
index 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.java
index 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 constants
private 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 minutes
public static final long kCacheMaxAge = 1000 * 60 * 2; // milliseconds; 2 minutes