Skip to content

Commit

Permalink
Collect run thread number higher per default (#2211)
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <[email protected]>
  • Loading branch information
olamy authored Oct 21, 2021
1 parent 07edcbc commit 3117d0f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public static Iterable<BlueRun> findRuns(Job job, final Link parent, int start,

public static final String COLLECT_THREADS_KEY = "blueocean.collectRuns.threads";

private static final int COLLECT_THREADS = Integer.getInteger( COLLECT_THREADS_KEY, 0 );
private static final int COLLECT_THREADS = Integer.getInteger( COLLECT_THREADS_KEY,
Runtime.getRuntime().availableProcessors() / 2 );

private static List<BlueRun> collectRuns(Iterator<? extends Run> runIterator, final Link parent, int start, int limit){
if (COLLECT_THREADS > 1) {
Expand Down

0 comments on commit 3117d0f

Please sign in to comment.