• 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: quicksorts [Re: List sorting dilemma]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quicksorts [Re: List sorting dilemma]


  • Subject: Re: quicksorts [Re: List sorting dilemma]
  • From: Andy Wylie <email@hidden>
  • Date: Sun, 28 Jul 2002 13:52:30 +1200

on 28/7/02 11:15 AM +1200: Nigel Garvey wrote:

> Andy Wylie wrote on Sat, 27 Jul 2002 14:58:10 +1200:
>
>> The Serge technique just doesn't seem to be required for global purposes
>> where 'my x's item 1' seems simpler, apart from that I see no advantage
>> using 'my' but I'm still interested in cases where the Serge technique
>> offers speed over 'my' as I believe they exist.
>
> I don't know of any such cases. The two techniques are really the same. A
> reference form is used to access the list rather than a simple list
> variable. References are known to give faster access to list items.
> According to Chris Nebel, this is because they bypass certain built-in
> safety checks. A reference variable that's set to 'a reference to x' has
> the value 'x of <<script>>', which is the same as 'x of me'. My pet
> theory for why the Serge technique is even faster than a reference
> variable is that a Serge reference is compiled directly into the script
> and doesn't need to be got.
>
I find the speed of 'x of me' and a Serge reference on par but 'a reference
to x' somewhere between these and straight access, not one and the same in
access speed.
I'm sure I found a similar difference between 'x of me' and a Serge
reference on a particular operation recently but cannot recall what it was
and now I'm thinking it was perhaps an addressing error on my part.


_____________________________ Andy
_______________________________________________
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.

References: 
 >Re: quicksorts [Re: List sorting dilemma] (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: maximun allowed text
  • Next by Date: Re: Mac OS X Finder views
  • Previous by thread: Re: quicksorts [Re: List sorting dilemma]
  • Next by thread: Re: quicksorts [Re: List sorting dilemma]
  • Index(es):
    • Date
    • Thread