• 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
TID speed test (Was Re: change case script)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TID speed test (Was Re: change case script)


  • Subject: TID speed test (Was Re: change case script)
  • From: Greg Back <email@hidden>
  • Date: Sat, 03 Nov 2001 21:59:12 -0500

> applescript-users digest, Vol 2 #1268 - 8 msgs

> Message: 6
> Date: Fri, 02 Nov 2001 16:46:32 -0800
> Subject: Re: change case script
> From: Paul Berkowitz <email@hidden>
> To: Applescript-Users <email@hidden>
>
> On 11/2/01 3:33 PM, "Arthur J Knapp" <email@hidden> wrote:
>
>> set text item delimiters to {""}
>
> I notice that you are orthodox about resetting tids to the correct
> single-item list, Arthur, but throughout the script you set them to strings
> instead (lowerC's item x, "_", rather than {lowerC's item x}, {"_"}). I
> know you're big on timings and speed issues. Has anyone ever tested whether
> doing the string to list coercion for tids (which AppleScript does for you
> when you leave out the list braces) say, 5000 times, makes any difference
> whatsoever to performance?

Hope no one beats me to this ;-)
Here are my results:

Run on my machine (imac DV 400 OS 9.2.1 AS 1.6 SE 1.6), the following script
returns
-->{10,12}
(varies from 9-10 and 11-13)


set time1 to (the ticks) as integer
repeat 5000 times
set text item delimiters to ""
end repeat
set time2 to the ticks
repeat 5000 times
set text item delimiters to {""}
end repeat
set time3 to the ticks
(time2 - time1) & (time3 - time2)


> --
> Paul Berkowitz


  • Follow-Ups:
    • Re: TID speed test (Was Re: change case script)
      • From: Paul Skinner <email@hidden>
  • Prev by Date: Re: FaceSpan/AppleScript Question
  • Next by Date: Re: change case script
  • Previous by thread: Re: Crash on quit, Virtual Memory, and AppleScript
  • Next by thread: Re: TID speed test (Was Re: change case script)
  • Index(es):
    • Date
    • Thread