Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
removed synchronization of size() method from numerous classes to avoid thread locking
orbiter5bbf0101072f
diff --git a/source/de/anomic/index/indexCollectionRI.java b/source/de/anomic/index/indexCollectionRI.javaindex f5562e390..e5badda6b 100644--- a/source/de/anomic/index/indexCollectionRI.java+++ b/source/de/anomic/index/indexCollectionRI.java@@ -67,7 +67,7 @@ public class indexCollectionRI implements indexRI {return entries.updated();}- public synchronized int size() {+ public int size() {try {return collectionIndex.size();} catch (IOException e) {diff --git a/source/de/anomic/index/indexRAMRI.java b/source/de/anomic/index/indexRAMRI.javaindex 8b28ee4ae..f24befe30 100644--- a/source/de/anomic/index/indexRAMRI.java+++ b/source/de/anomic/index/indexRAMRI.java@@ -265,7 +265,7 @@ public final class indexRAMRI implements indexRI {return this.cacheMaxCount;}- public synchronized int size() {+ public int size() {return cache.size();}diff --git a/source/de/anomic/kelondro/kelondroCollectionIndex.java b/source/de/anomic/kelondro/kelondroCollectionIndex.javaindex 70a59e120..c54c03da6 100644--- a/source/de/anomic/kelondro/kelondroCollectionIndex.java+++ b/source/de/anomic/kelondro/kelondroCollectionIndex.java@@ -272,7 +272,7 @@ public class kelondroCollectionIndex {}}- public synchronized int size() throws IOException {+ public int size() throws IOException {return index.size();}diff --git a/source/de/anomic/kelondro/kelondroFlexSplitTable.java b/source/de/anomic/kelondro/kelondroFlexSplitTable.javaindex 3fe941b47..73313e6e8 100644--- a/source/de/anomic/kelondro/kelondroFlexSplitTable.java+++ b/source/de/anomic/kelondro/kelondroFlexSplitTable.java@@ -122,7 +122,7 @@ public class kelondroFlexSplitTable implements kelondroIndex {return new String(suffix);}- public synchronized int size() throws IOException {+ public int size() throws IOException {Iterator i = tables.values().iterator();int s = 0;while (i.hasNext()) {