From 90d4453ccea52a8c63bd022d8c6127bc88454979 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sat, 25 May 2024 00:05:27 +0530 Subject: [PATCH] reduce bg threads cause not needed --- src/Http.hx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Http.hx b/src/Http.hx index fc33df86..dea20cd3 100644 --- a/src/Http.hx +++ b/src/Http.hx @@ -23,9 +23,7 @@ class Http { public static function init() { #if sys - threadPool = new sys.thread.FixedThreadPool(4); - threadPool.run(() -> threadLoop()); - threadPool.run(() -> threadLoop()); + threadPool = new sys.thread.FixedThreadPool(2); threadPool.run(() -> threadLoop()); threadPool.run(() -> threadLoop()); #end