• 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: "mylist" vs "a reference to" - speed difference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "mylist" vs "a reference to" - speed difference


  • Subject: Re: "mylist" vs "a reference to" - speed difference
  • From: Arthur J Knapp <email@hidden>
  • Date: Fri, 26 Apr 2002 09:41:04 -0400

> Subject: Re: "mylist" vs "a reference to" - speed difference
> Date: Fri, 26 Apr 2002 02:13:34 +0100
> From: Nigel Garvey <email@hidden>

> Your line 'set isalist to my thelist' just sets 'isalist' to the same as
> 'thelist'. The speed gain comes from accessing items in the list while
> refering to the list with an expression rather than a simple variable
> name. It's only worthwhile with very large lists and/or with a very large
> number of operations on the items.

I just wanted to point out that Nigel here was the guy who discovered
that the "my" technique was actually faster than the "Serge" technique of
directly calling a script object's properties and methods, (found by Serge
Belleudy-d'Espinose, of course).

repeat ( many ) times

-- In order of average best iterative speed:
--
get/set variableList's item x -- normal item access
get/set aReferenceToList's item x -- explicit saved reference
get/set myScript's propertyList's item x -- "Serge" access
get/set my propertyList's item x -- "Nigel" access



{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://www.goodbuddy.net/budco/sware/imscripts.htm>
on error number -128
end try
}
_______________________________________________
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: "mylist" vs "a reference to" - speed difference
      • From: email@hidden (Michael Sullivan)
  • Prev by Date: Re: AppleScript and MS-SQL
  • Next by Date: Re: Xpress 4.11 - further colour question
  • Previous by thread: Re: "mylist" vs "a reference to" - speed difference
  • Next by thread: Re: "mylist" vs "a reference to" - speed difference
  • Index(es):
    • Date
    • Thread