Re: The Case of the Missing Case Statement
Re: The Case of the Missing Case Statement
- Subject: Re: The Case of the Missing Case Statement
- From: Shane Stanley <email@hidden>
- Date: Sun, 05 Apr 2015 21:57:31 +1000
On 5 Apr 2015, at 8:17 pm, S. J. Cunningham <email@hidden> wrote:
>
> "Just don't worry about it" is not a very satisfying answer to why executing 296K if-then statements takes longer than executing 520K of them.
I tried your code a couple of times, and I get the results the other way round, but with similar slim margins. Changing the order of the tests changed things a bit again, but not much. Timing AppleScript scripts is a bit like that.
But I think the fundamental problem is that for your script to show significant differences, the time taken evaluating the tests would need to be a significant percentage of the overall running time. Whereas you've probably built a test script where the other stuff -- the iteration time, and the time taken to call handlers and then return results -- is taking up so much time, relatively speaking, that the value you're looking for is simply getting lost in the noise.
Which also means don't worry about it :-)
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden