Greetings all.
I have a feeling that, coming at this with a background in FORTRAN and
C, I'm missing some subtlety, possibly of an OO nature. Basically, I'm
looping over very large data arrays and memory usage just keeps growing
even though I re-use the arrays. Below is a stripped down versi
Re: [Numpy-discussion] memory usage question
To: numpy-discussion@scipy.org
On 06/06/2010 02:17 PM, Tom Kuiper wrote:
Greetings all.
I have a feeling that, coming at this with a background in FORTRAN and
C, I'm missing some subtlety, possibly of an OO nature. Basically, I'm
loopin
In fact, 'report_memory' shows that memory use was constant throughout
all 256 iterations. Thank you for the hint, Eric.
> Date: Tue, 08 Jun 2010 09:22:41 -0700
> From: Tom Kuiper
> Subject: Re: [Numpy-discussion] Memory Usage Question
> To: "numpy-discussion@scipy.or
ves opening and closing arrays repeatedly.
Regards
Tom Kuiper
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
There is something curious here. The second flush() fails. Can anyone
explain this?
Tom
--- code snippet
...
# create a memmap with dtype and shape that matches the data
fp = np.memmap(filename, dtype='float32', mode='w+', shape=(3,4))
print "Initial me