Re: Coping with Date format variations
Re: Coping with Date format variations
- Subject: Re: Coping with Date format variations
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 24 May 2010 20:46:19 -0400
Hm. Seems like we were just talking about profiling and premature
optimization. :). Thanks, Shane.
On Monday, May 24, 2010, Shane Stanley <email@hidden> wrote:
> On 25/5/10 9:59 AM, "Robert Poland" <email@hidden> wrote:
>
>> Is there a simple command that will do this (convert WakeUpTime to an
>> integer), and probably quicker?
>
> Others have answered the code question, but it's the "probably quicker" that
> interests me. I mean, this implies the existing version is slow -- have you
> timed it?
>
> FWIW, I used something like Michelle's code, and it did 10000 iterations in
> less than a second on my Mac. I doubt you're going to find anything
> significantly faster than that.
>
> I suspect you're assuming the amount of code somehow means it must be slow,
> but you can't judge code that way. For example, the one-liner using current
> date takes nearly 30 times longer to do 10000 iterations.
>
>
> --
> Shane Stanley <email@hidden>
>
>
>
> _______________________________________________
> 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
>
--
Mark J. Reed <email@hidden>
_______________________________________________
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