develooper Front page | perl.beginners | Postings from February 2002

Re: memory issues reading large files

Thread Previous
From:
Brett W. McCoy
Date:
February 7, 2002 12:39
Subject:
Re: memory issues reading large files
Message ID:
Pine.LNX.4.43.0202071547060.30587-100000@chapelperilous.net
On Thu, 7 Feb 2002, Brian Hayes wrote:

> Hello all.  I need to read through a large (150 MB) text file line by
> line.  Does anyone know how to do this without my process swelling to
> 300 megs?

As long as you aren't reading that file into an array (which would be a
foolish thing to do, IMHO), I don't see why the process would swell to 300
megs.

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
-  long    f_ffree;    /* free file nodes in fs */
+  long    f_ffree;    /* freie Dateiknoten im Dateisystem */
	-- Seen in a translation


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About