Re: Freeing Memory

2010-03-18 Thread Uri Guttman
> "h" == hsfrey writes: h> I rewrote the thing to use arrays instead of hashes, updating in place h> instead of moving stuff around, and generally using brute force h> instead of cleverness. h> I didn't want to do it that way before, because I was afraid it would h> take too much

Re: Freeing Memory

2010-03-18 Thread hsfrey
OK! I rewrote the thing to use arrays instead of hashes, updating in place instead of moving stuff around, and generally using brute force instead of cleverness. I didn't want to do it that way before, because I was afraid it would take too much time. Anyway now it runs to completion, and takes

Re: Freeing Memory

2010-03-17 Thread Uri Guttman
> "h" == hsfrey writes: h> I have a big data file - about 7000 entries, each about 100 bytes. h> I have to search it on the order of 7000 times, so I need to keep it h> in memory. just fyi, that is a tiny data file today. less than 1MB. uri -- Uri Guttman -- u...@stemsystems

Re: Freeing Memory

2010-03-17 Thread John W. Krahn
hsfrey wrote: I have a big data file - about 7000 entries, each about 100 bytes. 700,000 bytes is *not* a big file these days. I have to search it on the order of 7000 times, so I need to keep it in memory. As I search, some items no longer need to be searched, but they still need to be sav

Re: Freeing Memory

2010-03-17 Thread Shawn H Corey
hsfrey wrote: > Does anyone have any suggestion about how I could retrieve the lost > memory? You know it's really, really difficult to give meaningful advice without seeing the code. -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communicati

Freeing Memory

2010-03-17 Thread hsfrey
I have a big data file - about 7000 entries, each about 100 bytes. I have to search it on the order of 7000 times, so I need to keep it in memory. As I search, some items no longer need to be searched, but they still need to be saved. To save search time, I store the data as a set of parallel has

RE: references and freeing memory

2004-06-04 Thread Wiggins d Anconia
> >> The perlref docs state "Hard references are smart--they keep track of > >> reference counts for you, automatically freeing the thing referred to > >> when its reference count goes to zero." My interpretation of this is > >> that when a reference goes out of scope the memory used by > >> the

RE: references and freeing memory

2004-06-04 Thread Freimuth,Robert
>> The perlref docs state "Hard references are smart--they keep track of >> reference counts for you, automatically freeing the thing referred to >> when its reference count goes to zero." My interpretation of this is >> that when a reference goes out of scope the memory used by >> the referent i

RE: references and freeing memory

2004-06-04 Thread Tim Johnson
your program, but cannot be used by other programs. -Original Message- From: Freimuth,Robert [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 1:25 PM To: [EMAIL PROTECTED] Subject: references and freeing memory Hi all, The perlref docs state "Hard references are smart--they kee

references and freeing memory

2004-06-04 Thread Freimuth,Robert
Hi all, The perlref docs state "Hard references are smart--they keep track of reference counts for you, automatically freeing the thing referred to when its reference count goes to zero." My interpretation of this is that when a reference goes out of scope the memory used by the referent is freed

Re: Perl taking a long time to exit? Freeing memory?

2002-09-04 Thread Paul Johnson
On Wed, Sep 04, 2002 at 05:07:41PM +0100, Jeff AA wrote: > > > > It could be garbage collection, but it shouldn't take 2 minutes to > > free() 700MBs of data. Could be that your code is written in such > > a way that it is having to back out of lots of subroutines and > > free'in

RE: Perl taking a long time to exit? Freeing memory?

2002-09-04 Thread Jeff AA
> > It could be garbage collection, but it shouldn't take 2 minutes to > free() 700MBs of data. Could be that your code is written in such > a way that it is having to back out of lots of subroutines and > free'ing things as it goes? Such as with recursion? no recursion, and on

Re: Perl taking a long time to exit? Freeing memory?

2002-09-04 Thread Frank Wiles
.--[ Jeff AA wrote (2002/09/04 at 09:34:56) ]-- | | I have a Perl script that creates a large hash, from a collection of | files. I am running Perl 5.6.1 on SMP Linux 2.4.18, top shows my process | using up to 700MB of memory (which is fine on our servers). I have | noticed thou

Perl taking a long time to exit? Freeing memory?

2002-09-04 Thread Jeff AA
Hi folks, I have a Perl script that creates a large hash, from a collection of files. I am running Perl 5.6.1 on SMP Linux 2.4.18, top shows my process using up to 700MB of memory (which is fine on our servers). I have noticed though that when perl hits my exit 0; line, the process pauses for