Re: How to release memory?

2009-03-05 Thread Deviloper
Do you ever join your threads? Which Perl-Version do you use? Try update to the latest. Threads had memoryleaks and might till have some. Bye, B.

Re: how to release memory from a hash table or array

2008-12-10 Thread Dr.Ruud
org chen schreef: > I read a large file into a hash table. This hash table is used only > once in the subroutine. I am very concern the memory usage, So I plan > to realse the memory after used the hash table. The way I used is: > > my %hash = (); > > #read the large file into the hash table > ...

Re: how to release memory from a hash table or array

2008-12-09 Thread Rob Dixon
org chen wrote: > > Thanks for the confirmation and suggestion. > > I had tried Database, it do not work well for me, since the database need > more data structure to maintain the data, it take longer time or more memory > to add or remove data and matain the index table. In some case the pure

RE: how to release memory from a hash table or array

2008-12-09 Thread org chen
is much efficient, such as sorting. It is nice there is a place we can discuss these issus. Org. > Date: Wed, 10 Dec 2008 02:59:47 +> From: [EMAIL PROTECTED]> To: > beginners@perl.org> CC: [EMAIL PROTECTED]> Subject: Re: how to release memory > from a hash table

Re: how to release memory from a hash table or array

2008-12-09 Thread Rob Dixon
org chen wrote: > > I read a large file into a hash table. This hash table is used only once in > the subroutine. I am very concern the memory usage, So I plan to realse the > memory after used the hash table. The way I used is: > > my %hash = (); > > #read the large file into the hash table

Re: how to release memory from a hash table or array

2008-12-09 Thread Mr. Shawn H. Corey
On Wed, 2008-12-10 at 13:15 +1030, org chen wrote: > I read a large file into a hash table. This hash table is used only > once in the subroutine. I am very concern the memory usage, So I plan > to realse the memory after used the hash table. The way I used is: > > my %hash = (); > > #read the

Re: how to release memory

2002-09-11 Thread Jean-Luc BEAUDET
Paul Johnson wrote: > On Tue, Sep 10, 2002 at 10:33:34AM -0400, Chad Kellerman wrote: > > > Hello, > >I have a subroutine that declares a variable from standard out. If I > > just undef that variable will that free up the memory that it used? Or > > is there another command that frees up m

RE: how to release memory

2002-09-10 Thread Kipp, James
perl takes care of that for you. as long as there are no references left to the object, the memory is recycled. > -Original Message- > From: Chad Kellerman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 10, 2002 10:34 AM > To: [EMAIL PROTECTED] > Subject: how to release memory >

Re: how to release memory

2002-09-10 Thread Paul Johnson
On Tue, Sep 10, 2002 at 10:33:34AM -0400, Chad Kellerman wrote: > Hello, >I have a subroutine that declares a variable from standard out. If I > just undef that variable will that free up the memory that it used? Or > is there another command that frees up memory? That depends on what exa