- Joined
- Dec 26, 2007
- Messages
- 202
No, this doesn't belong in the request forum IMO.
I'm just looking for someone who can benchmark (or speedtest) the following script VS HAIL, ABC, TT, TimerUtils (both) and HSAS.
Thanks.
I'm just looking for someone who can benchmark (or speedtest) the following script VS HAIL, ABC, TT, TimerUtils (both) and HSAS.
Thanks.
JASS:
library_once DAS initializer Init
globals
private constant integer INT=1023
//
endglobals
private type store1 extends integer array[1023][40000]
private type store2 extends store1 array[1023]
globals
private store2 store
endglobals
private function H2I takes handle h returns integer
return h
return 0
endfunction
function GetStruct takes handle h returns integer
local integer i=H2I(h)-0x100000
return store[i/INT][i-(i/INT)*INT]
endfunction
function StoreStruct takes handle h, integer xxx returns nothing
local integer i=H2I(h)-0x100000
set store[i/INT][i-(i/INT)*INT]=xxx
endfunction
private function Init takes nothing returns nothing
local integer i=-1
set store=store2.create()
loop
set i=i+1
exitwhen i==store2.size
set store[i]=store.create()
endloop
endfunction
endlibrary