• 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: Silly question?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Silly question?


  • Subject: Re: Silly question?
  • From: John Delacour <email@hidden>
  • Date: Wed, 20 Aug 2003 14:17:26 +0100

At 5:49 pm +1000 20/8/03, Shane Stanley wrote:
On 20/8/03 12:22 PM +1000, Paul Berkowitz, email@hidden, wrote:

It has to fetch the entire list every time.

Are you sure?


I take an empty string and at to it one by one the 1025 characters of a message in Mail using two different routines.

The first routine takes 36 seconds, the second 0.7 seconds. This does not prove the point in queston because there are other factors, but it certainly proves there's a difference with something and for _anything_ to take 36 seconds to process 1000 things seems to me quite crazy.


JD


tell application "Mail"
set message1 to item 1 of (get selection)
set s to ""

set t to GetMilliSec
repeat with c in characters of content of message1
set s to s & contents of c
(c)
-->item 1025 of every character of content of message 15 of mailbox "Sent Messages" of account "BD8" of application "Mail"
end repeat
set t1 to ((GetMilliSec) - t) / 1000
-------------------
set t to GetMilliSec
set s to content of message1
set n to count characters in content of message1
repeat with i from 1 to n
set s to s & character i of s
end repeat
end tell
set t2 to ((GetMilliSec) - t) / 1000
{t1, t2}
--> {36.788, 0.712}
_______________________________________________
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: Silly question?
      • From: Shane Stanley <email@hidden>
    • Re: Silly question?
      • From: John Delacour <email@hidden>
References: 
 >Re: Silly question? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Is is possible to use records in a dynamic way?
  • Next by Date: Re: combining Applescript and CLI/cron jobs
  • Previous by thread: Re: Silly question?
  • Next by thread: Re: Silly question?
  • Index(es):
    • Date
    • Thread