Maximize thread pool worker thread count

pull/210/head
M66B 2 years ago
parent ada79e6db5
commit 7d78e88a9d

@ -260,6 +260,11 @@ public class Helper {
} }
}; };
if (threads == 0) {
int processors = Runtime.getRuntime().availableProcessors();
threads = processors * 4;
}
if (threads == 0) if (threads == 0)
return new ThreadPoolExecutorEx( return new ThreadPoolExecutorEx(
name, name,

Loading…
Cancel
Save