From f17ddc33952e52396d9c91e0d51dd0febe855470 Mon Sep 17 00:00:00 2001 From: Daan Date: Mon, 3 Jun 2024 09:55:02 -0700 Subject: [PATCH] increase thread data cache to32 entries --- src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.c b/src/init.c index f2d99d9e..e84d3ed8 100644 --- a/src/init.c +++ b/src/init.c @@ -249,7 +249,7 @@ typedef struct mi_thread_data_s { // destroy many OS threads, this may causes too much overhead // per thread so we maintain a small cache of recently freed metadata. -#define TD_CACHE_SIZE (16) +#define TD_CACHE_SIZE (32) static _Atomic(mi_thread_data_t*) td_cache[TD_CACHE_SIZE]; static mi_thread_data_t* mi_thread_data_zalloc(void) {