diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-16 13:41:03 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-16 13:41:03 -0200 |
commit | 5b01cb39b5ec36c544152351c35c43149d9bbfec (patch) | |
tree | 97032520ff4ca2cd5c6f41c9b0a8a9ddd042e39f /llimits.h | |
parent | a0503305bd95c40c0cbf5e78b345c30721176998 (diff) | |
download | lua-5b01cb39b5ec36c544152351c35c43149d9bbfec.tar.gz lua-5b01cb39b5ec36c544152351c35c43149d9bbfec.tar.bz2 lua-5b01cb39b5ec36c544152351c35c43149d9bbfec.zip |
larger MINSTRTABSIZE (standard Lua starts with ~230 strings, after
oppening the standard libraries)
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.126 2015/01/13 15:49:11 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.127 2015/01/16 13:26:55 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other 'installation-dependent' definitions | 3 | ** Limits, basic types, and some other 'installation-dependent' definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -166,9 +166,14 @@ typedef unsigned long Instruction; | |||
166 | 166 | ||
167 | 167 | ||
168 | 168 | ||
169 | /* minimum size for the string table (must be power of 2) */ | 169 | /* |
170 | ** Initial size for the string table (must be power of 2). | ||
171 | ** The Lua core alone registers ~50 strings (reserved words + | ||
172 | ** metaevent keys + a few others). Libraries would typically add | ||
173 | ** a few dozens more. | ||
174 | */ | ||
170 | #if !defined(MINSTRTABSIZE) | 175 | #if !defined(MINSTRTABSIZE) |
171 | #define MINSTRTABSIZE 64 /* minimum size for "predefined" strings */ | 176 | #define MINSTRTABSIZE 128 |
172 | #endif | 177 | #endif |
173 | 178 | ||
174 | 179 | ||