From f2421f6a47e4baf6106a2287bb38fbb83ad547bf Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 27 Mar 2006 23:14:04 +0000 Subject: [PATCH] some small attribut changes regarding cache flush git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1974 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaWordIndex.java | 6 +++--- source/de/anomic/plasma/plasmaWordIndexCache.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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