Switch to fast string hash.

This commit is contained in:
Mike Pall
2010-07-21 22:53:27 +02:00
parent d05873ee0a
commit 420124372b
4 changed files with 25 additions and 7 deletions

View File

@@ -473,10 +473,11 @@ typedef struct global_State {
GCState gc; /* Garbage collector. */
SBuf tmpbuf; /* Temporary buffer for string concatenation. */
Node nilnode; /* Fallback 1-element hash part (nil key and value). */
GCstr strempty; /* Empty string. */
uint8_t stremptyz; /* Zero terminator of empty string. */
uint8_t hookmask; /* Hook mask. */
uint8_t dispatchmode; /* Dispatch mode. */
uint8_t vmevmask; /* VM event mask. */
uint8_t unused1;
GCRef mainthref; /* Link to main thread. */
TValue registrytv; /* Anchor for registry. */
TValue tmptv; /* Temporary TValue. */