Re: quicksorts [Re: List sorting dilemma]
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.