- Joined
- Feb 7, 2009
- Messages
- 427
I did a test to see the maximum amount of hashtables allowed.
Seems the cap is 255.
Here's the script I used to test it (I used KeyTimers2):
So... Discuss?
Seems the cap is 255.
Here's the script I used to test it (I used KeyTimers2):
JASS:
library hashlimit initializer Init
globals
hashtable array hash
integer i = 0
endglobals
function msg takes string s returns nothing
call DisplayTextToForce(GetPlayersAll(), s)
endfunction
function Callback takes nothing returns nothing
set hash[i] = InitHashtable()
call SaveInteger(hash[i], 1, 2, GetRandomInt(0, 2147483647))
call msg("Hashtable count: " + I2S(i) + " Stored Integer: " + I2S((LoadInteger(hash[i],1,2))))
set i = i + 1
endfunction
function Init takes nothing returns nothing
local timer time = CreateTimer()
call TimerStart(time, .5, true, function Callback)
endfunction
endlibrary
So... Discuss?
Last edited: