From e432bb9cd9e3c5452ca6678154e1a64948b28283 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Thu, 26 Jul 2012 10:05:06 +0200 Subject: [PATCH] better calculation of possible saving in HeapReader index data structure --- source/net/yacy/kelondro/blob/HeapReader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/kelondro/blob/HeapReader.java b/source/net/yacy/kelondro/blob/HeapReader.java index 9b8782d1c..429396ba2 100644 --- a/source/net/yacy/kelondro/blob/HeapReader.java +++ b/source/net/yacy/kelondro/blob/HeapReader.java @@ -186,7 +186,9 @@ public class HeapReader { // check saturation int[] saturation = this.index.saturation(); // {, } - log.logInfo("saturation of " + this.fingerprintFileIdx.getName() + ": keylength = " + saturation[0] + ", vallength = " + saturation[1] + ", possible saving if data structure would be compressed: " + ((this.keylength - saturation[0] + 8 - saturation[1]) * this.index.size() / 1024 / 1024) + " MB"); + log.logInfo("saturation of " + this.fingerprintFileIdx.getName() + ": keylength = " + saturation[0] + ", vallength = " + saturation[1] + ", size = " + this.index.size() + + ", maximum saving for index-compression = " + (saturation[0] * this.index.size() / 1024 / 1024) + " MB" + + ", exact saving for value-compression = " + (saturation[1] * this.index.size() / 1024 / 1024) + " MB"); // read the gap file: try {