Re: Work the Scripting Addition without restarting....
Re: Work the Scripting Addition without restarting....
- Subject: Re: Work the Scripting Addition without restarting....
- From: Jon Pugh <email@hidden>
- Date: Fri, 9 Nov 2001 15:07:33 -0800
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