NoobImbaPro
You can change this now in User CP.
- Reaction score
- 60
I've got two codes that do the same thing, which is faster and why?
JASS:
method iterate takes code func returns nothing
local trigger temp = CreateTrigger()
local thistype cnt = this.guard
call TriggerAddAction(temp, func)
loop
set cnt = cnt.next
exitwhen cnt == cnt.guard
set enumerable = cnt
call TriggerExecute(temp)
endloop
call DestroyTrigger(temp)
set temp = null
endmethod
JASS:
method iterate takes string funcname returns nothing
local thistype cnt = this.guard
loop
set cnt = cnt.next
exitwhen cnt == cnt.guard
set enumerable = cnt
call ExecuteFunc( funcname )
endloop
endmethod