From be4a18b7f6968fe27b8a113f417f03e08eaf0dca Mon Sep 17 00:00:00 2001 From: Laurence Tratt Date: Thu, 24 Sep 2026 16:03:42 +0100 Subject: [PATCH] `luaH_resize` is better off outlined. In particular, we sometimes get a lot of (not very useful) sidetraces form `if (newasize < oldasize)` in this function. --- src/ltable.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ltable.c b/src/ltable.c index c187306..1237dbb 100644 --- a/src/ltable.c +++ b/src/ltable.c @@ -713,6 +713,7 @@ static void clearNewSlice (Table *t, unsigned oldasize, unsigned newasize) { ** the old one ('oldasize'), this function will do nothing with that ** part. */ +__attribute__((yk_outline)) void luaH_resize (lua_State *L, Table *t, unsigned newasize, unsigned nhsize) { Table newt; /* to keep the new hash part */