From 587d0c95f281ac6d6de58fe22387dacc31e9726c Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" Date: Thu, 3 Oct 2024 13:01:12 -0700 Subject: [PATCH] add a max_workers value the default is 32 limited by cpu core count, but we don't really care about core count here because this is for io, so just use 32 --- folder_paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folder_paths.py b/folder_paths.py index c99d3866d..c4ff5a91e 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -48,7 +48,7 @@ user_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "user filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {} -async_executor = ThreadPoolExecutor() +async_executor = ThreadPoolExecutor(32) class CacheHelper: """