Re: Update to memory growth problems with Event.pm

2002-05-21 Thread Nick Ing-Simmons
Joshua N Pritikin <[EMAIL PROTECTED]> writes: >On Tue, May 14, 2002 at 10:04:51AM +0100, Nick Ing-Simmons wrote: >> >In Event.xs, I change _loop() to: >> > >> >PROTOTYPE: ;$ >> >CODE: >> >double maxtm = 60; >> >if (items == 1) maxtm = SvNV(ST(0)); >> >> What frees the maxtm SV ? >

Re: Update to memory growth problems with Event.pm

2002-05-20 Thread Joshua N Pritikin
On Tue, May 14, 2002 at 10:04:51AM +0100, Nick Ing-Simmons wrote: > >In Event.xs, I change _loop() to: > > > >PROTOTYPE: ;$ > >CODE: > >double maxtm = 60; > >if (items == 1) maxtm = SvNV(ST(0)); > > What frees the maxtm SV ? Huh? maxtm is a double. ST(0) is on the stack. As fa

Re: Update to memory growth problems with Event.pm

2002-05-14 Thread Nick Ing-Simmons
Bradley Brahms <[EMAIL PROTECTED]> writes: >Here is an update where I am in testing right now. > >Having noted that using one_event() does not cause a memory growth problem I >thought I would change Event.xs to make loop() be a while(1) loop calling >safe_one_event(). The purpose of the test was t

Re: Update to memory growth problems with Event.pm

2002-05-13 Thread Joshua N Pritikin
On Mon, May 13, 2002 at 06:32:04PM -0400, Bradley Brahms wrote: > To do this, one would add the following to their script: > > Event->timer(interval => 5, cb => sub{unloop;}); > > then change their Event::loop; line to > while (1) { > Event::loop; > } i think this is the sam

Update to memory growth problems with Event.pm

2002-05-13 Thread Bradley Brahms
Here is an update where I am in testing right now. Having noted that using one_event() does not cause a memory growth problem I thought I would change Event.xs to make loop() be a while(1) loop calling safe_one_event(). The purpose of the test was to see if that would solve the growth problem. I