reduced sleep times

pull/1/head
orbiter 13 years ago
parent 780f8974e7
commit 99ef57f103

@ -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;

@ -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); }
}

Loading…
Cancel
Save