numarray memory leak
Robert Kern
rkern at ucsd.edu
Sat Nov 13 22:01:09 EST 2004
Peter Dobcsanyi wrote:
> Calling the following function with a large enough 'n' causes memory leak.
>
> import numarray as N
>
> def loop(n, m=100):
> for i in xrange(n):
> a = N.zeros((m,m))
> N.matrixmultiply(a, a)
>
> If the matrixmultiply line is commented out, there is no leak, the
> program has a stable memory size.
>
> I am using numarray 1.1, the result is the same with Python 2.3.4 and
> 2.4b2.
I don't see such behavior on Mac OSX 10.3, Python 2.3, CVS numarray and
n=10000.
Could you try CVS numarray? What n did you use?
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list