Re: [Numpy-discussion] iteration slowing, no increase in memory

2009-09-11 Thread Robert Kern
On Thu, Sep 10, 2009 at 14:39, David Warde-Farley wrote: > On 10-Sep-09, at 1:09 PM, Robert Kern wrote: > >> One thing you can do to verify this is to change the order of >> iteration. You will also want to profile your code. Then you can see >> what is taking up so much time. >> >>  http://docs.py

Re: [Numpy-discussion] iteration slowing, no increase in memory

2009-09-11 Thread David Warde-Farley
On 10-Sep-09, at 1:09 PM, Robert Kern wrote: > One thing you can do to verify this is to change the order of > iteration. You will also want to profile your code. Then you can see > what is taking up so much time. > > http://docs.python.org/library/profile Because apparently Robert is too modest

Re: [Numpy-discussion] iteration slowing, no increase in memory

2009-09-11 Thread Fernando Perez
On Thu, Sep 10, 2009 at 10:03 AM, John [H2O] wrote: > I have a routine that is iterating through a series of directories, loading > files, plotting, then moving on... > > It runs very well for the first few iterations, but then slows tremendously You mention plotting. I'd suggest checking that y

Re: [Numpy-discussion] iteration slowing, no increase in memory

2009-09-11 Thread Hans Meine
On Thursday 10 September 2009 19:03:20 John [H2O] wrote: > I have a routine that is iterating through a series of directories, loading > files, plotting, then moving on... > > It runs very well for the first few iterations, but then slows tremendously Maybe you "collect" some data into growing dat

Re: [Numpy-discussion] iteration slowing, no increase in memory

2009-09-10 Thread Chad Netzer
On Thu, Sep 10, 2009 at 10:03 AM, John [H2O] wrote: > It runs very well for the first few iterations, but then slows tremendously > - there is nothing significantly different about the files or directory in > which it slows. I've monitored the memory use, and it is not increasing. The memory use

Re: [Numpy-discussion] iteration slowing, no increase in memory

2009-09-10 Thread Robert Kern
On Thu, Sep 10, 2009 at 12:03, John [H2O] wrote: > > Hello, > > I have a routine that is iterating through a series of directories, loading > files, plotting, then moving on... > > It runs very well for the first few iterations, but then slows tremendously > - there is nothing significantly differe

[Numpy-discussion] iteration slowing, no increase in memory

2009-09-10 Thread John [H2O]
Hello, I have a routine that is iterating through a series of directories, loading files, plotting, then moving on... It runs very well for the first few iterations, but then slows tremendously - there is nothing significantly different about the files or directory in which it slows. I've monito