Re: [Pythonmac-SIG] python slowing down on large files

2005-04-22 Thread Yair Benita
Hi Bob, Thanks for the tips. It a bit tricky to put the script as its a bit complex. Its build in a way that there is a class that makes all calculations and returns the output. Lets simplify: class objX: def __init__(self, params): def method1 (self): d

Re: [Pythonmac-SIG] python slowing down on large files

2005-04-21 Thread Bob Ippolito
On Apr 21, 2005, at 10:06 AM, Yair Benita wrote: I am using python 2.3 on Panther and have a question. I use python to read a huge 1Gb text file, one line at a time. For each line a functions is performed and the result is written to an output file. No information should accumulate as the file is b

[Pythonmac-SIG] python slowing down on large files

2005-04-21 Thread Yair Benita
Hi All, I am using python 2.3 on Panther and have a question. I use python to read a huge 1Gb text file, one line at a time. For each line a functions is performed and the result is written to an output file. No information should accumulate as the file is being read and yet, the first few thousand