From cfb51fdef11fd3516cf8285b55f64a19d4337da9 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 17 Aug 2006 00:10:50 +0000 Subject: [PATCH] less synchronization in plasmaWordIndex git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2416 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaWordIndex.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.java index ac913f7b6..adc53ade1 100644 --- a/source/de/anomic/plasma/plasmaWordIndex.java +++ b/source/de/anomic/plasma/plasmaWordIndex.java @@ -391,7 +391,6 @@ public final class plasmaWordIndex extends indexAbstractRI implements indexRI { } public int size() { - synchronized (ramCache) { if (useCollectionIndex) return java.lang.Math.max(collections.size(), java.lang.Math.max(assortmentCluster.size(), @@ -399,12 +398,10 @@ public final class plasmaWordIndex extends indexAbstractRI implements indexRI { else return java.lang.Math.max(assortmentCluster.size(), java.lang.Math.max(backend.size(), ramCache.size())); - } } public int indexSize(String wordHash) { int size = 0; - synchronized (ramCache) { try { plasmaWordIndexFile entity = backend.getEntity(wordHash, true, -1); if (entity != null) { @@ -415,7 +412,6 @@ public final class plasmaWordIndex extends indexAbstractRI implements indexRI { if (useCollectionIndex) size += collections.indexSize(wordHash); size += assortmentCluster.indexSize(wordHash); size += ramCache.indexSize(wordHash); - } return size; }