- Joined
- Oct 11, 2012
- Messages
- 711
Hi guys, please take a look at the short example below:
I have three questions:
1. In terms of the time of execution, which one is faster?
2. As for efficiency, which one is better?
3. Which one would you use?
Thanks.
JASS:
//! textmacro T takes N
call SaveUnitHandle(hash,GetHandleId(t),$N$,dum[$N$])
//! endtextmacro
//! runtextmacro T("0")
//! runtextmacro T("1")
//! runtextmacro T("2")
//! runtextmacro T("3")
//! runtextmacro T("4")
//! runtextmacro T("5")
//---------------------------------------------
local integer i = 0
loop
exitwhen i > 5
call SaveUnitHandle(hash,GetHandlId(t),i,dum[i])
set i = i + 1
endloop
I have three questions:
1. In terms of the time of execution, which one is faster?
2. As for efficiency, which one is better?
3. Which one would you use?
Thanks.