Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

What is the reason for the large time penalty

$
0
0
Here are two examples:
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?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>