From a80cada9142f9e967c710e37934067a708224161 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 4 Mar 2015 10:31:21 -0300 Subject: new cache for interning strings --- lstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index fb2e91b4..285dfd82 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.118 2014/10/25 11:50:46 roberto Exp roberto $ +** $Id: lstate.h,v 2.119 2014/10/30 18:53:28 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -140,6 +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]; /* cache for strings in API */ } global_State; -- cgit v1.2.3-55-g6feb