[Numpy-discussion] setmember1d memory leak?
robert.kern at gmail.com
Mon Jan 22 14:38:54 CST 2007
Per B. Sederberg wrote:
> Does anyone have any idea of what might be occurring in setmember1d in
> combination with this setup that would cause such a massive memory leak?
Can you check out numpy from SVN and see if you can reproduce the leak? I do not
see a leak with a recent checkout on OS X with the following code:
In : from numpy import *
In : ar1 = arange(1000000)
In : ar2 = arange(3, 7)
In : import itertools
In : for i in itertools.count(1):
....: if not i % 1000:
....: print i
....: x = setmember1d(ar1, ar2)
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion