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
This commit is contained in:
Alex "mcmonkey" Goodwin 2024-10-03 13:01:12 -07:00
parent 00db33f6b7
commit 587d0c95f2

View File

@ -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:
"""