From 1a4c02c8d912809fc888530ab2983bfa047ac818 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 17 Jan 2012 19:51:43 +1000 Subject: Change to the stringshared hash, it's way faster. --- LuaSL/src/LuaSL_compile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 99ba53e..c28a6fc 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -518,7 +518,7 @@ void beginBlock(LuaSL_compiler *compiler, LSL_Leaf *block) if (blok) { - blok->variables = eina_hash_string_superfast_new(burnLeaf); + blok->variables = eina_hash_stringshared_new(burnLeaf); block->value.blockValue = blok; blok->outerBlock = compiler->currentBlock; compiler->currentBlock = blok; @@ -998,9 +998,9 @@ Eina_Bool compileLSL(gameGlobals *game, char *script) memset(&compiler, 0, sizeof(LuaSL_compiler)); compiler.game = game; - compiler.script.functions = eina_hash_string_superfast_new(burnLeaf); - compiler.script.states = eina_hash_string_superfast_new(burnLeaf); - compiler.script.variables = eina_hash_string_superfast_new(burnLeaf); + compiler.script.functions = eina_hash_stringshared_new(burnLeaf); + compiler.script.states = eina_hash_stringshared_new(burnLeaf); + compiler.script.variables = eina_hash_stringshared_new(burnLeaf); compiler.ignorableText = eina_strbuf_new(); strncpy(compiler.fileName, script, PATH_MAX - 1); -- cgit v1.1