Re: Work the Scripting Addition without restarting....
Re: Work the Scripting Addition without restarting....
- Subject: Re: Work the Scripting Addition without restarting....
- From: "J.B. Stewart" <email@hidden>
- Date: Sat, 10 Nov 2001 04:56:30 -0500
On 11/9/01 at 3:07 PM, Jon Pugh <email@hidden> wrote:
>
At 8:33 AM -0800 11/9/2001, Brian Johnson wrote:
>
>However, before I add a "run script '5'" to all my CGI run handlers, is there
a downside to doing this?
>
>
Time and memory.
>
>
It takes time, a potentially considerable amount, as well as a large chunk of
memory, so if either are in short supply (and they
>
always are) then you should be careful about when you do this.
>
>
Specifically, you should probably only do this when you actually need to
install a scripting addition, which is when the time and
>
memory hit will be acceptable in exchange for the functionality.
>
>
As an esoteric detail, I should point out that if a scripting addition stores
any info in its refcon, reloading the scripting
>
additions will probably overwrite the refcon, resulting in a leak. For
example, my "set cursor to" scripting addition keeps the
>
acur resource (detached) in its refcon for busy cursors so that it knows which
cursor to switch to next. I don't know of any
>
other scripting additions which do this sort of thing, as it is mildly skanky.
>
>
Jon
>
_____
This might prove to be of less impact -
<< = ASCII number 199, >> = ASCII Number 200
try
tell me to <<event ascrgdut>>
on error
--
end try
John