From 9af0d4b66f45d717eb0af3124a01395701395e2a Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 5 Dec 2021 19:25:54 +0200 Subject: [PATCH] don't inline hashmap size doubling function --- src/utils/hashmapTemplate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/hashmapTemplate.h b/src/utils/hashmapTemplate.h index d2b0c810..b3a5165d 100644 --- a/src/utils/hashmapTemplate.h +++ b/src/utils/hashmapTemplate.h @@ -106,7 +106,7 @@ static inline void N(qins) (Map* m, u64 h1, HT h2 IFKEY(, KT k) IFVAL(, VT v)) { if (p++==mask) p = 0; } } -static void N(dbl) (Map** m) { +static NOINLINE void N(dbl) (Map** m) { Map* pm = *m; u64 psz = pm->sz; Map* nm = N(m)(psz*2);