From 959b779aba237bfd8bc7ff68c742e5808152065b Mon Sep 17 00:00:00 2001 From: theli Date: Sun, 3 Sep 2006 08:42:46 +0000 Subject: [PATCH] *) avoid performance loss if log level is greater than 'fine' See: http://www.yacy-forum.de/viewtopic.php?p=25180 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2467 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaDHTChunk.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/plasmaDHTChunk.java b/source/de/anomic/plasma/plasmaDHTChunk.java index 50c900b79..e67dc47bb 100644 --- a/source/de/anomic/plasma/plasmaDHTChunk.java +++ b/source/de/anomic/plasma/plasmaDHTChunk.java @@ -290,7 +290,8 @@ public class plasmaDHTChunk { } String wordHash = indexContainers[i].getWordHash(); count += wordIndex.removeEntries(this.indexContainers[i].getWordHash(), urlHashes, true); - log.logFine("Deleted partial index (" + c + " URLs) for word " + wordHash + "; " + this.wordIndex.indexSize(wordHash) + " entries left"); + if (log.isFine()) + log.logFine("Deleted partial index (" + c + " URLs) for word " + wordHash + "; " + this.wordIndex.indexSize(wordHash) + " entries left"); this.indexContainers[i] = null; } return count;