numarray memory leak

Peter Dobcsanyi peter at designtheory.org
Sat Nov 13 21:24:04 EST 2004


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.

    Peter



More information about the Python-list mailing list