Re: Damn send button / Wind chill (nesting more efficient shock)
Re: Damn send button / Wind chill (nesting more efficient shock)
- Subject: Re: Damn send button / Wind chill (nesting more efficient shock)
- From: Mr Tea <email@hidden>
- Date: Mon, 04 Mar 2002 10:23:06 +0000
This from Shane Stanley - dated 3/3/02 11:29 pm:
>
> As far as slowing things down, I think it's time we quantify this.
>
>
Will this do?
>
>
set time1 to the ticks
>
repeat 500 times
>
tell application "Finder"
>
tell application "BBEdit 6.5"
>
current date
>
end tell
>
end tell
>
end repeat
>
set time2 to the ticks
>
repeat 500 times
>
tell application "BBEdit 6.5"
>
current date
>
end tell
>
end repeat
>
set time3 to the ticks
>
{time3 - time2, time2 - time1}
>
>
Difference is negligible.
Well, you've chucked the gauntlet down there, Shane. I ran a similar type of
test with a bunch of word processors and in the majority of cases the
embedded tell block was FASTER. I was so surprised that I thought I must be
addled from lack of sleep (or something) and retired to bed in confusion.
But I tested again after a refreshing night's rest, and found the same
thing.
For these not very rigorous tests, I left your script as was, apart from
changing application names and replacing the 'current date' command with
'paste'. Results in ticks were:
AppleWorks 5 {1235, 809} {2690, 2034} {3546, 3026}
AppleWorks 6 {379, 375} {908, 577}
Nisus Writer {1651, 1834} {1145, 1153} {1183, 1186}
Tex-Edit Plus {435, 410} {464, 446} {502, 484}
Word 98 {8852, 8170}
In all pairs of numbers, the second figure is that for the application tell
block nested inside the Finder tell block. Appleworks 5 was up to 50% slower
when doing stuff on it's own, with TE Plus holding steady at around 5%
slower. AW 6 shows clear speed improvements over it predecessor, but in the
second set of figures generated, it also seemed to get a huge speed boost
from being in a Finder tell block. Sluggish, lumpy old Nisus Writer (6.5)
seems to be quietly doing its own thing, regardless of whether or not the
Finder is involved. Word 98's risible, faltering performance just made me
glad I don't have much cause to use it, although again, it was quicker
inside the Finder tell block
I just ran a final test on AW5, NW6.5 and TE+, to make sure I hadn't got it
all cock-eyed, using a modified script that generated the result in this
format:
AW with Finder: 889
AW without Finder: 1410
NW with Finder: 1011
NW without Finder: 936
TE with Finder: 442
TE without Finder: 468
Comments?
Mr Tea
--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.