From 9fae7b6d3fca02b4661aaa7c16e9fbeec8964b9b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 22 Sep 2015 11:18:24 -0300 Subject: code for string cache generalized for "associative sets" (compiler will optimize away or inline the extra loops) --- lstate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 61dd99f9..33351ca3 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.123 2015/07/04 16:33:17 roberto Exp roberto $ +** $Id: lstate.h,v 2.124 2015/09/08 15:41:05 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -140,7 +140,7 @@ typedef struct global_State { TString *memerrmsg; /* memory-error message */ TString *tmname[TM_N]; /* array with tag-method names */ struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ - TString *strcache[STRCACHE_SIZE][1]; /* cache for strings in API */ + TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ } global_State; -- cgit v1.2.3-55-g6feb