diff options
| -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 | ||
