applied fix for inefficient put method as recommended by celle, see

http://forum.yacy-websuche.de/viewtopic.php?p=12424#p12424

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5532 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent 025ebd7574
commit f9672d3f97

@ -136,7 +136,9 @@ public class kelondroRowSet extends kelondroRowCollection implements kelondroInd
super.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;
}

Loading…
Cancel
Save