Re: memory leak problem with arrays

2006-06-20 Thread sonjaa
Hi Fredrik the array was created by reading in values from a ascii file. also, I've implemented the suggestions, but nothing has worked to date. And yes, I have enough memory for one iteration. The app usually runs out of memory around the 12th iteration. Also, I can send a working version of th

Re: memory leak problem with arrays

2006-06-15 Thread Fredrik Lundh
sonjaa wrote: > "y" is a 500x500 array. a 500x500 array of what ? how did you create the array ? -- http://mail.python.org/mailman/listinfo/python-list

Re: memory leak problem with arrays

2006-06-15 Thread Serge Orlov
sonjaa wrote: > Serge Orlov wrote: > > sonjaa wrote: > > > Serge Orlov wrote: > > > > sonjaa wrote: > > > > > Hi > > > > > > > > > > I'm new to programming in python and I hope that this is the problem. > > > > > > > > > > I've created a cellular automata program in python with the numpy > > > > >

Re: memory leak problem with arrays

2006-06-15 Thread sonjaa
Carl Banks wrote: > sonjaa wrote: > > I've created a cellular automata program in python with the numpy array > > extensions. After each cycle/iteration the memory used to examine and > > change the array as determined by the transition rules is never freed. > > Are you aware that slicing shares m

Re: memory leak problem with arrays

2006-06-15 Thread sonjaa
Fredrik Lundh wrote: > <[EMAIL PROTECTED]> wrote: > > After doing this I see that iterative counters used to collect occurrences > > and nested loop counters (ii & jj) as seen in the code example below > > are the culprits with the worst ones over 1M: > > > > for ii in xrange(0,40)

Re: memory leak problem with arrays

2006-06-15 Thread Carl Banks
sonjaa wrote: > I've created a cellular automata program in python with the numpy array > extensions. After each cycle/iteration the memory used to examine and > change the array as determined by the transition rules is never freed. Are you aware that slicing shares memory? For example, say you d

Re: memory leak problem with arrays

2006-06-15 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > After doing this I see that iterative counters used to collect occurrences > and nested loop counters (ii & jj) as seen in the code example below > are the culprits with the worst ones over 1M: > > for ii in xrange(0,40): >for jj in x

Re: memory leak problem with arrays

2006-06-14 Thread sonjaa
Serge Orlov wrote: > sonjaa wrote: > > Serge Orlov wrote: > > > sonjaa wrote: > > > > Hi > > > > > > > > I'm new to programming in python and I hope that this is the problem. > > > > > > > > I've created a cellular automata program in python with the numpy array > > > > extensions. After each cycl

Re: memory leak problem with arrays

2006-06-14 Thread Serge Orlov
sonjaa wrote: > Serge Orlov wrote: > > sonjaa wrote: > > > Hi > > > > > > I'm new to programming in python and I hope that this is the problem. > > > > > > I've created a cellular automata program in python with the numpy array > > > extensions. After each cycle/iteration the memory used to examine

Re: memory leak problem with arrays

2006-06-14 Thread Robert Kern
sonjaa wrote: > Hi > > I'm new to programming in python and I hope that this is the problem. > > I've created a cellular automata program in python with the numpy array > extensions. After each cycle/iteration the memory used to examine and > change the array as determined by the transition rules

Re: memory leak problem with arrays

2006-06-14 Thread John Machin
On 15/06/2006 8:27 AM, sonjaa wrote: > Serge Orlov wrote: >> sonjaa wrote: >>> Hi >>> >>> I'm new to programming in python and I hope that this is the problem. >>> >>> I've created a cellular automata program in python with the numpy array >>> extensions. After each cycle/iteration the memory used

Re: memory leak problem with arrays

2006-06-14 Thread sonjaa
Serge Orlov wrote: > sonjaa wrote: > > Hi > > > > I'm new to programming in python and I hope that this is the problem. > > > > I've created a cellular automata program in python with the numpy array > > extensions. After each cycle/iteration the memory used to examine and > > change the array as

Re: memory leak problem with arrays

2006-06-14 Thread Serge Orlov
sonjaa wrote: > Hi > > I'm new to programming in python and I hope that this is the problem. > > I've created a cellular automata program in python with the numpy array > extensions. After each cycle/iteration the memory used to examine and > change the array as determined by the transition rules i

memory leak problem with arrays

2006-06-14 Thread sonjaa
Hi I'm new to programming in python and I hope that this is the problem. I've created a cellular automata program in python with the numpy array extensions. After each cycle/iteration the memory used to examine and change the array as determined by the transition rules is never freed. I've tried