[Numpy-discussion] Memory leak in argsort?

Francesc Altet faltet@carabos....
Mon Feb 5 11:04:35 CST 2007


El dl 05 de 02 del 2007 a les 08:45 -0800, en/na Keith Goodman va
escriure:
> This eats up memory quickly on my system.
> 
> import numpy.matlib as M
> 
> def memleak():
>     a = M.randn(500, 1)
>     while True:
>         a = a.argsort(0)

Yeah, the guilty in this case is argsort():

http://projects.scipy.org/scipy/numpy/ticket/394

Travis fixed this in trunk (but forgot to close the ticket ;)

-- 
Francesc Altet    |  Be careful about using the following code --
Carabos Coop. V.  |  I've only proven that it works, 
www.carabos.com   |  I haven't tested it. -- Donald Knuth



More information about the Numpy-discussion mailing list