[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unloading Perl scripts ...



On Fri, 2002-04-12 at 02:38, Peter Zelezny wrote:
> On Fri, 12 Apr 2002 11:13:31 +0200
> Frodo Baggins <thehobbit@altern.org> wrote:
> 
> > > I am sorry if the answer to this question is found elsewhere, I have
> > >never been aboe to find it .... I am wondering if there is a way to
> > >unload a single perl script from xchat (1.8.7) .... having to kill
> > >them all and load all but one is ... well .... inconvenient :)
> > 
> > Nope, you can't. This should change, if and when I found the time to
> > finish working on a perl based perl scripting interface. 
> > 
> > By the wa, this could also solve the problem of modifying the
> > parameter passed to the perl funciton.
> > 
> > Greetings
> 
> It should change for 1.9.x/2.0.0. Running each script in it's own initialized
> interpreter might do the trick, but I'm scared to see how much memory that'll
> use. What do you mean by a "perl based" perl scripting interface (it sounds
> evil ;)?

I wouldn't be too scared. Each interpreter instance should only consume
memory for its data -- that is, the script code, variables, etc. The
interpreter code itself should not need to be reloaded for each
interpreter instance, and I would imagine that's what consumes most of
the memory.

Regards,

Alex.

-- 
PGP Public Key: http://aoi.dyndns.org/~alex/pgp-public-key

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s:++ a18 C++(++++)>$ UL+++(++++) P--- L+++>++++ E---- W+(+++) N-
o-- K+ w--- !O M(+) V-- PS+++ PE-- Y+ PGP+(+++) t* 5-- X-- R tv b- DI
D+++ G e h! !r y
------END GEEK CODE BLOCK------

This is a digitally signed message part