Further speed upof concurrent DHT-receive

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6259 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
hermens 16 years ago
parent 2fbc0696bf
commit c4d0e22a77

@ -427,6 +427,10 @@ public final class ReferenceContainerCache<ReferenceType extends Reference> exte
synchronized (cache) {
ReferenceContainer<ReferenceType> containerNew = cache.put(tha, container);
if (containerNew == null) return;
if (container == containerNew) {
// The containers are the same, so nothing needs to be done
return;
}
// Now merge the smaller container into the lager.
// The other way around can become very slow
if (container.size() >= containerNew.size()) {

Loading…
Cancel
Save