Re: Doing time
Re: Doing time
- Subject: Re: Doing time
- From: Shane Stanley <email@hidden>
- Date: Mon, 14 Jul 2014 19:48:08 +1000
On 14 Jul 2014, at 6:35 pm, 2551 <email@hidden> wrote:
> I'm genuinely intrigued about this. Having determined how long it takes for a script to run, or to reach a certain breakpoint, what use can we make of this information?
It's very easy to overstate the value. But people do time things, so this is something to make it easier, and to remove some of the external factors. It's really the product of a few spare hours, and something I wanted myself.
But yes, it is likely to be used mainly to (hopefully) settle otherwise rather meaningless comparisons.
> Perhaps it might be a factor in chosing a coding strategy when there's two or more different ways to solve a problem, but it's rare (isn't it?) that this kind of choice is on the table
No, I think it's very common. When someone asks a question here and there are several answers, in some cases the time taken is relevant to the decision about which to use. There are cases where you want to know whether iteration is better than a whose clause, for instance.
There's even the case you raised a while back, on the pros and cons of using system info to get a lot of information at once versus getting the few bits you need separately by other means. One real way to answer the question is to time both.
A lot of people look at something that involves a lot of lines of code, and assume it's going to be slower -- the one-liner mentality is very much alive. I think many beginners make this sort of decision about using text item delimiters, for instance. Form that point of view, this app makes it easy to make the point. And of course it makes it easier to justify nonsense...
--
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
References: | |
| >Doing time (From: Shane Stanley <email@hidden>) |