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.
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
> ...
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
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
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
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
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
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
>
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