[Numpy-discussion] memory leak w/ numpy & Numeric together

Travis Oliphant oliphant@ee.byu....
Wed Mar 21 17:46:09 CDT 2007


Bryan Cole wrote:

>I'm not sure where best to post this, but I get a memory leak when using
>code with both numpy and FFT(from Numeric) together:
>
>e.g.
>
>  
>
>>>>import numpy
>>>>import FFT
>>>>def test():
>>>>        
>>>>
>...     while 1:
>...         data=numpy.random.random(2048)
>...         newdata = FFT.real_fft(data)
>  
>
>>>>test()
>>>>        
>>>>
>
>and memory consumption goes through the roof. I'm using numpy-1.0.1 and
>Numeric-24.2 (on FC6).
>
>  
>
There may be a memory leak in the way Numeric uses the array interface.

>This has now forced me to go 100% numpy...
>  
>
Not a bad thing :-)

-Travis



More information about the Numpy-discussion mailing list