Skip to content

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

removed flush at end of every rwi entry since this reduces the write performance. This should speed up RWI cache dump and RWI merge operations and should cause less blocking time during these processes for the indexer.

orbiter312ca5d917ff
diff --git a/source/net/yacy/kelondro/blob/HeapWriter.java b/source/net/yacy/kelondro/blob/HeapWriter.java
index 67a551a88..bf7fc81d7 100644
--- a/source/net/yacy/kelondro/blob/HeapWriter.java
+++ b/source/net/yacy/kelondro/blob/HeapWriter.java
@@ -110,7 +110,7 @@ public final class HeapWriter {
os.write(blob);
//assert (this.doublecheck.add(new String(key))) : "doublecheck failed for " + new String(key);
this.seek += chunkl + 4;
- os.flush(); // necessary? may cause bad IO performance :-(
+ //os.flush(); // necessary? may cause bad IO performance :-(
}
protected static File fingerprintIndexFile(File f, String fingerprint) {