Here are two examples:
1 - Object Property
2 - Object Method
@AutoItVersion = 3.3.9.4
The first example is much faster than the second.
1 - 50 ms
2 - 6400 ms
Why is this happening?
1 - Object Property
2 - Object Method
[ autoit ]
$oIE = _IECreate('http://msdn.microsoft.com/en-US/') $oAs = _IETagNameGetCollection($oIE,'a') ConsoleWrite('> Object Property href' & @LF) $iTimer = TimerInit() For $oA In $oAs $sHref = $oA.href Next ConsoleWrite(TimerDiff($iTimer) & @LF) ConsoleWrite('> Object Method href()' & @LF) $iTimer = TimerInit() For $oA In $oAs $sHref = $oA.href() Next ConsoleWrite(TimerDiff($iTimer) & @LF)
@AutoItVersion = 3.3.9.4
The first example is much faster than the second.
1 - 50 ms
2 - 6400 ms
Why is this happening?