Skip to content

Commit

Permalink
reduced sleep times
Browse files Browse the repository at this point in the history
  • Loading branch information
Orbiter committed Aug 18, 2012
1 parent 780f897 commit 99ef57f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/net/yacy/search/query/RWIProcess.java
Expand Up @@ -86,7 +86,7 @@
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;
Expand Down
2 changes: 1 addition & 1 deletion source/net/yacy/search/query/SnippetProcess.java
Expand Up @@ -159,7 +159,7 @@ public ResultEntry oneResult(final int item, final long timeout) {
// 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); }
}
Expand Down

0 comments on commit 99ef57f

Please sign in to comment.