if not get_hash then get_hash = function(s,p) if not s then return end local h = 0; local n = string.len(s);local m = 4; -- put 4 characters together local r = 0;local i = 0; while i maxlen then maxlen = length; maxidx = i end count = count + 1 end end if maxlen>0 then local data = hashdb[maxidx]; say("number of used hash entries is " .. count .. ", average " .. (step/count) .. " entries per hash, ".. " max length of list is " .. maxlen .. " at hash ".. maxidx )--.. " : " .. --string.gsub(_G.dump(data),"\n","") ) end end -- LOAD DICTIONARY WORDS into hashtable lang = "german" fname = "F:\\games\\rpg\\minetest-0415server\\mods\\basic_translate\\"..lang; local f = _G.assert(_G.io.open(fname, "r"));local dicts = f:read("*all");f:close() step = 0; maxwords = 10000; i=0 dict = {}; -- for comparison while(step