• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Damn send button / Wind chill (nesting more efficient shock)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Damn send button / Wind chill (nesting more efficient shock)


  • Subject: Re: Damn send button / Wind chill (nesting more efficient shock)
  • From: "J. B Stewart" <email@hidden>
  • Date: Mon, 04 Mar 2002 10:53:17 -0500

On 3/4/02 05:23, "Mr Tea" <email@hidden> enscribed:

> 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


And the result of the tests without any of those tell blocks were? Isn't the
use of unnecessary tells and nesting the whole point of this discussion?

I suspect that what is being seen here with embedded tells is effectively
the same as placing the application into the background. In effect
backgrounding makes a different application the target of the implied
current application tell wrapper of any script. Curiously the same appears
to happen here but I'm not sure why it would.

John
_______________________________________________
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.

  • Follow-Ups:
    • Re: Damn send button / Wind chill (nesting more efficient shock)
      • From: Mr Tea <email@hidden>
References: 
 >Re: Damn send button / Wind chill (nesting more efficient shock) (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Damn send button / Wind chill (nesting more efficient shock)
  • Next by Date: Re: Damn send button / Wind chill (nesting more efficient shock)
  • Previous by thread: Re: Damn send button / Wind chill (nesting more efficient shock)
  • Next by thread: Re: Damn send button / Wind chill (nesting more efficient shock)
  • Index(es):
    • Date
    • Thread