in reply to Acky Memory

Let it go out of scope.

Unless it has circular references, or involves some sort of XS component that doesn't malloc() (whatever the XS function to return memory back to Perl's pool) properly, it should be reclaimed by the internal garbage collection schemes correctly.

I saw exactly what you described, though, in that every ten seconds it would eat up another small chunk of my memory. If I could think of a good object to use that didn't have XS components, I'd try that demo over.

Replies are listed 'Best First'.
RE: Re: Acky Memory
by quidity (Pilgrim) on Nov 12, 2000 at 16:50 UTC

    Here the object does go out of scope as the variable associated with the object is my'd to the loop.