Best way to create temporary file?

Michael Hoffman cam.ac.uk at mh391.invalid
Sun May 1 19:26:18 EDT 2005


Frank Millman wrote:

> It is certainly possible to store the entire report in memory, using a
> two-dimensional list (page/line), but if a report runs into hundreds of
> pages, I am concerned at the amount of memory this would require.
> Perhaps I am being old-fashioned - with todays memory of at least 64k,
> it would probably fit without a problem - but I would prefer to write
> the pages away and read them back when needed.

Modern operating systems have a technique for dealing with this. It is 
called virtual memory. You are only using up more memory, CPU, and disk 
speed by using temporary files unnecessarily.
-- 
Michael Hoffman



More information about the Python-list mailing list