Skip to content

Commit

Permalink
Always single thread in debug mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcyu committed Jan 30, 2018
1 parent 267408a commit 844e3d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/proteomics/ECL2.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ private ECL2(String parameter_path, String spectra_path) throws IOException, MzX
if (thread_num == 0) {
thread_num = 1 + Runtime.getRuntime().availableProcessors();
}
if (debug) {
thread_num = 1;
}
ExecutorService thread_pool = Executors.newFixedThreadPool(thread_num);
Search search_obj = new Search(build_index_obj, parameter_map);
List<Future<FinalResultEntry>> taskList = new LinkedList<>();
Expand Down

0 comments on commit 844e3d9

Please sign in to comment.