Re: Passing *possible* variables to a handler
Re: Passing *possible* variables to a handler
- Subject: Re: Passing *possible* variables to a handler
- From: Nigel Garvey <email@hidden>
- Date: Wed, 17 Jul 2002 11:30:11 +0100
I wrote on Tue, 16 Jul 2002 23:52:23 +0100:
Regarding a reconstructed speed test of the initialisation of a script
object inside a handler, the object itself containing two properties and
another handler:
>
{t1, t2}
>
--> {16, 15} (on a 400 G3 powerBook)
>
>
The original "interior" handler was much longer and the speed difference
>
was about three ticks.
This last statement seems a bit silly in the light of morning. :-\ I
imagine that an instance of a script object is just a collection of
pointers to the items it contains. In the case of a handler, the pointer
would indicate a block of code that was shared by every instance. This
would explain the speed of the initialisation and would mean that the
size of a handler was irrelevant.
NG
_______________________________________________
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.