[Tutor] endless processing through for loop

Dinesh B Vadhia dineshbvadhia at hotmail.com
Mon Jun 23 03:03:29 CEST 2008


There is no thrashing of disk as I have > 2gb RAM and I'm not keeping the file contents in memory.  One line is read at a time, some simple string processing and then writing out the modified line.



From: Kent Johnson 
Sent: Sunday, June 22, 2008 5:39 PM
To: Dinesh B Vadhia 
Cc: tutor at python.org 
Subject: Re: [Tutor] endless processing through for loop


On Sun, Jun 22, 2008 at 8:13 PM, Dinesh B Vadhia
<dineshbvadhia at hotmail.com> wrote:
> That's it.  Very simple but after i reaches about 550,000 the program begins
> to crawl.  As an example, the loops to 550,000 takes about an hour.  From
> 550,000 to 580,000 takes an additional 4 hours.
>
> Any ideas about what could be going on?

What happens to memory use? Does it start to thrash the disk? Are you
somehow keeping the file contents in memory for all the files you
read?

Kent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080622/d2212804/attachment.htm>


More information about the Tutor mailing list