diff --git a/source/de/anomic/kelondro/text/IndexCell.java b/source/de/anomic/kelondro/text/IndexCell.java index a41db0dd0..439095f8f 100644 --- a/source/de/anomic/kelondro/text/IndexCell.java +++ b/source/de/anomic/kelondro/text/IndexCell.java @@ -279,7 +279,7 @@ public final class IndexCell extends AbstractBufferedIndex implements BufferedIn } // clean-up the cache - if (this.lastCleanup + cleanupCycle > System.currentTimeMillis()) return; + if (this.array.size() < 50 && this.lastCleanup + cleanupCycle > System.currentTimeMillis()) return; //System.out.println("----cleanup check"); this.array.shrink(this.targetFileSize, this.maxFileSize); this.lastCleanup = System.currentTimeMillis();