Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
less synchronization in plasmaWordIndex
orbitercfb51fdef11f
diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.javaindex 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 {elsereturn 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;}