Re: "mylist" vs "a reference to" - speed difference
Re: "mylist" vs "a reference to" - speed difference
- Subject: Re: "mylist" vs "a reference to" - speed difference
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 26 Apr 2002 10:15:25 -0700
On 4/26/02 9:15 AM, "Michael Sullivan" <email@hidden> wrote:
>
But the last 2 are so close that the difference doesn't really matter
>
for most purposes. I don't think "my" is actually any faster. Maybe it
>
depends on what you're doing with the list.
Actually, Nigel never claimed that 'my' was faster than script object
property. he said it was the same thing, and i believe it is. you actually
need to know about both ways, since you can't refer to locally-defined lists
in handlers as 'my': that will only work with global variables. you need
Serge's script object method in handlers. But in main scripts you can't
compile undefined properties in script objects so you either need to use
serge's extra suggestion of setting them to missing value and then
re-setting the script object's property to your list outside of the script
object itself, or using 'my list', which is a lot simpler and does the same
thing. I use both all the time now, thanks to Serge and Nigel. I agree that
it speeds things up appreciable even with only a few hundred list items.
--
Paul Berkowitz
_______________________________________________
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.