[Numpy-discussion] Memory leak in ndarray

Robert Crida robert.crida at ska.ac.za
Fri Oct 26 09:27:56 EDT 2007


Hi again

I watch the VmSize of the process using eg top or ps

If a is a list then it remains constant. If a is an ndarray as shown in the
example, then the VmSize grows quite rapidly.

Cheers
Robert

On 10/26/07, David Cournapeau <david at ar.media.kyoto-u.ac.jp> wrote:
>
> Robert Crida wrote:
> > Hi
> >
> > I don't think it is a python issue because if you change the line b =
> > str(a) to just read
> > str(a)
> > then the problem still occurs.
> >
> > Also, if you change a to be a list instead of ndarray then the problem
> > does not occur.
> How do you know there is a memory leak ?
>
> cheers,
>
> David
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20071026/aee55619/attachment.html>


More information about the NumPy-Discussion mailing list