From 9eaeb80ddf63a1ab5614171ea845928dac0ed037 Mon Sep 17 00:00:00 2001 From: dags- Date: Wed, 12 Feb 2020 13:50:40 +0000 Subject: [PATCH] tweak default threadpool --- .../java/com/terraforged/core/util/concurrent/ThreadPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TerraForgedCore/src/main/java/com/terraforged/core/util/concurrent/ThreadPool.java b/TerraForgedCore/src/main/java/com/terraforged/core/util/concurrent/ThreadPool.java index 822b416..34903e4 100644 --- a/TerraForgedCore/src/main/java/com/terraforged/core/util/concurrent/ThreadPool.java +++ b/TerraForgedCore/src/main/java/com/terraforged/core/util/concurrent/ThreadPool.java @@ -6,7 +6,7 @@ import java.util.concurrent.*; public class ThreadPool { - public static final int DEFAULT_POOL_SIZE = Math.max(2, Runtime.getRuntime().availableProcessors() / 2); + public static final int DEFAULT_POOL_SIZE = Math.max(4, Runtime.getRuntime().availableProcessors() - 1); private static final Object lock = new Object();