Re: [Numpy-discussion] Memory leak in ndarray, more info

2007-10-28 Thread Robert Crida
Hi Karol Thank you very much for the sleuth work here. We are in the midst of software ATP so it helps a lot that I will be able to resolve this bug properly. Robert On 10/29/07, Karol Langner <[EMAIL PROTECTED]> wrote: > > I opened a ticket for this (#602). Hopefully someone will confirm that >

Re: [Numpy-discussion] Memory leak in ndarray

2007-10-26 Thread Robert Crida
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 <[EMAIL PROTECTED]> wrote: > > Robert Crida w

Re: [Numpy-discussion] Memory leak in ndarray

2007-10-26 Thread Robert Crida
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. Cheers Robert On 10/26/07, Matthew Brett <[EMAIL PROTECTED]> wrote: > > Hi,

[Numpy-discussion] Memory leak in ndarray, more info

2007-10-26 Thread Robert Crida
Hi all I recently posted about a memory leak in numpy and failed to mention the version. The leak manifests itself in numpy-1.0.3.1 but is not present in numpy-1.0.2 The following code reproduces the bug: import numpy as np a = np.array([1.0, 2.0, 3.0]) while True: b = str(a) What happens

[Numpy-discussion] Memory leak in ndarray

2007-10-26 Thread Robert Crida
Hi all I seem to have tracked down a memory leak in the string conversion mechanism of numpy. It is demonstrated using the following code: import numpy as np a = np.array([1.0, 2.0, 3.0]) while True: b = str(a) What happens above is that is repeatedly converted to a string. The process size