aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-09-20 14:55:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-09-20 14:55:53 -0300
commit361a9adba7aff402b7e5f559a361ff5f86f62415 (patch)
tree0c74f447999d86d9481a018576db897b3e7c8712
parentd8f1cca16ea9a682127bb328c8bdfbfb4ded3412 (diff)
downloadlua-361a9adba7aff402b7e5f559a361ff5f86f62415.tar.gz
lua-361a9adba7aff402b7e5f559a361ff5f86f62415.tar.bz2
lua-361a9adba7aff402b7e5f559a361ff5f86f62415.zip
smaller initial tables (for programs that create many states)
-rw-r--r--lstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index 9b979036..fab9720b 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.32 2005/06/03 20:15:58 roberto Exp roberto $ 2** $Id: lstate.c,v 2.33 2005/08/25 15:39:16 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -71,8 +71,8 @@ static void f_luaopen (lua_State *L, void *ud) {
71 global_State *g = G(L); 71 global_State *g = G(L);
72 UNUSED(ud); 72 UNUSED(ud);
73 stack_init(L, L); /* init stack */ 73 stack_init(L, L); /* init stack */
74 sethvalue(L, gt(L), luaH_new(L, 0, 20)); /* table of globals */ 74 sethvalue(L, gt(L), luaH_new(L, 0, 2)); /* table of globals */
75 sethvalue(L, registry(L), luaH_new(L, 6, 20)); /* registry */ 75 sethvalue(L, registry(L), luaH_new(L, 0, 2)); /* registry */
76 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ 76 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */
77 luaT_init(L); 77 luaT_init(L);
78 luaX_init(L); 78 luaX_init(L);