- Joined
- Mar 3, 2006
- Messages
- 1,564
What is the maximum string length that can be saved in a hashtable ?
You know, for these kind of questions it's just better to test it by yourself.
local integer i = 0
local string s = ""
local hashtable h = InitHashtable()
loop
call SaveStr(h,0,0,I2S(1 x (10 ^ i)))
set s = LoadStr(h,0,0)
if S2I(s) <= 0 then
call DebugMsg(I2S(i))
exitwhen true
endif
set i = i + 1
endloop
Thanks guys, but Nestharus already told me that a system like the one I was about to make will be too slow.
Nes already created a "super pimp multi-dimensional arrays with ubersauce"-system (actual Nes-quote), Catalog.
Strings are indeed slow though (and they also leak ).
y not just use zinc it has "real" 2d arrays
y not just use zinc it has "real" 2d arrays