Re: hash arrays and other mysteries
Re: hash arrays and other mysteries
- Subject: Re: hash arrays and other mysteries
- From: has <email@hidden>
- Date: Sat, 20 Oct 2001 14:03:13 +0100
Jon Pugh wrote:
>
At 4:23 PM +0100 10/19/2001, has wrote:
>
>I can understand that compiling a string as executable code takes a certain
>
>amount of time, and that doing this during runtime has implications for the
>
>"parent" script's speed. Except Smile's "do script" does the same thing,
>
>but in a fraction of the time. I don't understand why. Maybe Smile has its
>
>own built-in compiler that happens to be faster than Applescript's own? Or
>
>some other reason?
>
>
He's preloaded the compiler. With "run script" it's a one shot, so it has
>
to load, compile, execute and unload everything. Any running app, like
>
script editors, can keep an instance of the compiler loaded, so that all
>
they have to do is compile and run. No loading and unloading. It takes
>
more memory and an app to keep stuff around, but it works much faster.
[The sound you will hear is that of palm slapping forehead.]
<thwack>
Ack - it seems so obvious now that you've explained it. <sigh> So much
still to learn...
Thanks Jon, and Chris and Arthur too.
has