<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000080>I have a program with 2 for loops like this (in
pseudocode):</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>fw = open(newLine.txt, 'w')</FONT></DIV>
<DIV><FONT color=#000080>for i in xrange(0, 700,000, 1):</FONT></DIV>
<DIV><FONT color=#000080> read a file fname from
folder</FONT></DIV>
<DIV><FONT color=#000080> for line in open(fname,
'r'):</FONT></DIV>
<DIV><FONT color=#000080> do some simple
string processing on line</FONT></DIV>
<DIV><FONT color=#000080>
fw.write(newline)</FONT></DIV>
<DIV><FONT color=#000080>fw.close()</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>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.</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>Any ideas about what could be going on?</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>Dinesh</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080></FONT> </DIV></BODY></HTML>