22-32milli
^- preparser: in_commandLine_send_modified_clipboard.ahk
Code: Select all
t1 := A_TickCount
testObj := {}
testObj.ar := [1,2,3,4,5,6,7,8,9]
loop,1000
{
s := ""
for key, val in testObj.ar
{
s .= key "=" val " "
}
}
t2 := A_TickCount
milli := t2 - t1
31milli
^- preparser: in_commandLine_send_modified_clipboard.ahk
Code: Select all
t1 := A_TickCount
testObj := {}
testObj.ar := [1,2,3,4,5,6,7,8,9]
loop,1000
{
s := ""
s .= func1(testObj)
}
t2 := A_TickCount
milli := t2 - t1
func1(testObj){
for key, val in testObj.ar
s .= key "=" val " "
return s
}
31milli
^- preparser: in_commandLine_send_modified_clipboard.ahk
Code: Select all
t1 := A_TickCount
testObj := {}
testObj.ar := [1,2,3,4,5,6,7,8,9]
loop,1000
{
s := ""
s .= func1(testObj)
}
t2 := A_TickCount
milli := t2 - t1
func1(ByRef testObj){
for key, val in testObj.ar
s .= key "=" val " "
return s
}
hmmmm. look everything nearly same spped