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@python.org 
Subject: Re: [Tutor] endless processing through for loop


On Sun, Jun 22, 2008 at 8:13 PM, Dinesh B Vadhia
<[EMAIL PROTECTED]> 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
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to