Question of memory management in Perl

2004-05-24 Thread Hari Krishnaan
Hi all, I have question with respect to memory utilization using perl. I am reading a huge file close to 786432 lines of hex values & am storing in an array. I do a data reformatting using the data in these array & in the sequence of process generate a number of arrays & eventually write into a

Question of memory management in Perl

2004-05-24 Thread Hari Krishnaan
Hi all, I have question with respect to memory utilization using perl. I am reading a huge file close to 786432 lines of hex values & am storing in an array. I do a data reformatting using the data in these array & in the sequence of process generate a number of arrays & eventually write into a

Re: Question of memory management in Perl

2004-05-24 Thread Eric Walker
off the top of my head I would suggest you slice off the slice off the pieces that you have used already when pulling data from the original array. That way the array gets smaller as you finish modifiying its info and transferring it somewhere else. BassFool On Monday 24 May 2004 02:57 pm, Ha

Re: Question of memory management in Perl

2004-05-24 Thread Wiggins d Anconia
> > Hi all, > I have question with respect to memory utilization using perl. I am reading a huge file close to 786432 lines of hex values & am storing in an array. I do a data reformatting using the data in these array & in the sequence of process generate a number of arrays & eventually write int

RE: Question of memory management in Perl

2004-05-25 Thread Marcos . Rebelo
e 786432 values on the memory. Marcos > -Original Message- > From: Hari Krishnaan [mailto:[EMAIL PROTECTED] > Sent: Monday, May 24, 2004 9:38 PM > To: [EMAIL PROTECTED] > Subject: Question of memory management in Perl > > > Hi all, > I have question with resp

RE: Question of memory management in Perl

2004-05-26 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I don't know for sure the effect of: > > @out_array_bin = map {""} (@out_array_bin); > > instead of > > for ($init_cnt=0;$init_cnt<=$#out_array_bin;$init_cnt++) { >$out_array_bin[$init_cnt] = ""; > } > > But is more readable. Neither makes much s

RE: Question of memory management in Perl

2004-05-26 Thread Marcos . Rebelo
> -Original Message- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 25, 2004 8:08 PM > To: [EMAIL PROTECTED] > Subject: RE: Question of memory management in Perl > > > From: [EMAIL PROTECTED] > > I don

RE: Question of memory management in Perl

2004-05-26 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I supose that the end result of: > > for ($init_cnt=0;$init_cnt<=$#out_array_bin;$init_cnt++) { >$out_array_bin[$init_cnt] = ""; > } > > and > > '@out_array_bin = ();' or 'undef @out_array_bin;' > > is not the some, is it? No it's not. Suppose