Re: var too large

Paolo <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <20090226102338.GA8801@localhost>
On Thu, Feb 26, 2009 at 11:03:29AM +0100, Thomas Michael Hagen wrote:
> 
>    my program goes through large files. some of them are almost 300Mb.

hm, do you think you really need to slurp in the whole file for a suitable
classification?

>    however, when i run the program on many files, they somehow accumulate
>    in the program's memory, and after a while exceed the limit.

depends on your program; likely you set some var to file content and forget 
to clean it before next read; say your stuff is in :v:, then when you're 
done with that you'd just

  isolate (:v:) //

to free up mem space.

HTH
-- 
paolo

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.