go ahead... be a heretic | |
PerlMonks |
Re: Re: Re: Re: Re: Optimising processing for large data files.by toma (Vicar) |
on Apr 11, 2004 at 19:55 UTC ( [id://344283]=note: print w/replies, xml ) | Need Help?? |
It would be interesting to try a few variations
on this code, such as not using lexical variables,
to isolate the cause of this behavior. Another
source of memory strangeness could be the file system. If you look in the win32 directory of the Perl source code, you will see that there are several ways to change the way that perl allocates and frees memory, in 5.8.0, at least. Here's a snippet from vmem.h:
I don't know how ActiveState perl was built. It's probably in Config.pm somewhere, though. The comment about _USE_LINKED_LIST leads me to believe that there is a memory leak, which can be fixed at the expense of using more memory. My guess, based on your observations, is that ActiveState perl has this leak. Also, you might possibly have a version of MSVCRT.DLL installed which is not the one that ActiveState had in mind for you to use.
It should work perfectly the first time! - toma
In Section
Meditations
|
|