Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
reduced sleep times
orbiter99ef57f103d2
diff --git a/source/net/yacy/search/query/RWIProcess.java b/source/net/yacy/search/query/RWIProcess.javaindex 205c90932..1e717ce70 100644--- a/source/net/yacy/search/query/RWIProcess.java+++ b/source/net/yacy/search/query/RWIProcess.java@@ -86,7 +86,7 @@ import com.hp.hpl.jena.rdf.model.Resource;public final class RWIProcess extends Thread{- private static final long maxWaitPerResult = 300;+ private static final long maxWaitPerResult = 30;private static final int max_results_preparation = 3000, max_results_preparation_special = -1; // -1 means 'no limit'private final QueryParams query;diff --git a/source/net/yacy/search/query/SnippetProcess.java b/source/net/yacy/search/query/SnippetProcess.javaindex 8ca4bca01..cac3386f6 100644--- a/source/net/yacy/search/query/SnippetProcess.java+++ b/source/net/yacy/search/query/SnippetProcess.java@@ -159,7 +159,7 @@ public class SnippetProcess {// the first 10 results have a very special timing to get most of the remote results ordered// before they are presented on the first lines .. yes sleeps seem to be bad. but how shall we predict how long other// peers will take until they respond?- long sleep = item == 0 ? 600 : (10 - item) * 12; // the first result takes the longest time+ long sleep = item == 0 ? 400 : (10 - item) * 9; // the first result takes the longest time//Log.logInfo("SnippetProcess", "SLEEP = " + sleep);try { Thread.sleep(sleep); } catch (final InterruptedException e1) { Log.logException(e1); }}