Skip to content

Commit

Permalink
some small attribut changes regarding cache flush
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1974 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Mar 27, 2006
1 parent 5382ab5 commit f2421f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/de/anomic/plasma/plasmaWordIndex.java
Expand Up @@ -168,9 +168,9 @@ public int addEntries(plasmaWordIndexEntryContainer entries, long updateTime, bo

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);
}

Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/plasma/plasmaWordIndexCache.java
Expand Up @@ -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

Expand Down

0 comments on commit f2421f6

Please sign in to comment.