mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Maximize thread pool worker thread count
This commit is contained in:
@@ -260,6 +260,11 @@ public class Helper {
|
||||
}
|
||||
};
|
||||
|
||||
if (threads == 0) {
|
||||
int processors = Runtime.getRuntime().availableProcessors();
|
||||
threads = processors * 4;
|
||||
}
|
||||
|
||||
if (threads == 0)
|
||||
return new ThreadPoolExecutorEx(
|
||||
name,
|
||||
|
||||
Reference in New Issue
Block a user