lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



For large tables (with many keys or where keys are added/removed often and randomly), Lua is extremely poor compared to ...
See the current situation in Wikimedia Commons ...
 
Can you share benchmarks and numbers to prove the point?

If you want to change the hash function in your Lua implementation, this is very easily done: just edit the lstring.c and rebuild your executable. 
Edit the luaS_hash() and luaS_hashlongstr() to change the way hash is computed and how long strings are sampled.
Then perform some benchmark and let's see if the predicted improvement is there.

   Andrea


--
Andrea Vitali