lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 361a9adba7aff402b7e5f559a361ff5f86f62415
parent d8f1cca16ea9a682127bb328c8bdfbfb4ded3412
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 20 Sep 2005 14:55:31 -0300

smaller initial tables (for programs that create many states)

Diffstat:
Mlstate.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lstate.c b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.32 2005/06/03 20:15:58 roberto Exp roberto $ +** $Id: lstate.c,v 2.33 2005/08/25 15:39:16 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -71,8 +71,8 @@ static void f_luaopen (lua_State *L, void *ud) { global_State *g = G(L); UNUSED(ud); stack_init(L, L); /* init stack */ - sethvalue(L, gt(L), luaH_new(L, 0, 20)); /* table of globals */ - sethvalue(L, registry(L), luaH_new(L, 6, 20)); /* registry */ + sethvalue(L, gt(L), luaH_new(L, 0, 2)); /* table of globals */ + sethvalue(L, registry(L), luaH_new(L, 0, 2)); /* registry */ luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ luaT_init(L); luaX_init(L);