Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
applied fix for inefficient put method as recommended by celle, see http://forum.yacy-websuche.de/viewtopic.php?p=12424#p12424
orbiterf9672d3f9772
diff --git a/source/de/anomic/kelondro/kelondroRowSet.java b/source/de/anomic/kelondro/kelondroRowSet.javaindex 261b13391..82381b6db 100644--- a/source/de/anomic/kelondro/kelondroRowSet.java+++ b/source/de/anomic/kelondro/kelondroRowSet.java@@ -136,7 +136,9 @@ public class kelondroRowSet extends kelondroRowCollection implements kelondroIndsuper.addUnique(entry);} else {oldentry = get(index, true);- set(index, entry);+ int sb = this.sortBound; // save the sortBound, because it is not altered (we replace at the same place)+ set(index, entry); // this may alter the sortBound, which we will revert in the next step+ this.sortBound = sb; // revert a sortBound altering}return oldentry;}