[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Welcome to America!



Welcome to America!  :-)

Since last I e-mailed to the list I have bought an 8.4GB disk drive and
have installed System 7.6.1 onto it.  (No....I don't have 8.0 or 8.1.) 
I'm re-installing MacPerl also.  MacPerl has been really acting strange
lately on the old disk drive.  Unknown why but an example of what's
going on is that I had a simple program like this:

open(THEFILE, "myfile.dat" )|| die $!;
while( <THEFILE> ){
	do something
	}
close( THEFILE );

and MacPerl was attempting to read the whole file into memory at one
time.  I'm suspecting that the problem has to do with my going from 80mb
of memory to 160mb in the system without re-installing the system.  We
shall soon see!  :-)

I've downloaded version 520r4 also for the install.  :-)

On other thoughts - I also downloaded the source and began going through
it looking for "short" declarations.  BBEdit reports 1059 usages of the
word "short" in MacPerl (or would it be Perl at this point?).  Anyway, I
was wondering if a short is used in the hash table when a SORT command
is executed?  I found several shorts in hash_X.c and I was wondering if
this might not be a factor (ie: the usage of SHORT variables) in MacPerl
retaining memory after usage?  Since several of my files are now 20mb or
so in size could the variable which monitors such things for garbage
collection be a short and thus would "forget" about memory which has
been allocated in one large chunk?  (ie: if memory allocation is > 64K
then the short would flip back to zero and any memory allocated
previously would be forgotten about.)  :-)

Just a thought.  :-)

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch