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)
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
On 2/5/07, Francesc Altet <faltet@carabos.com> wrote:
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():
The first page of trac search results for argsort shows the ticket. Now I know to check there first. Will the latest numpy from svn work with matplotlib 0.87.7?
Keith Goodman wrote:
Will the latest numpy from svn work with matplotlib 0.87.7?
It should. We are committed to backwards compatibility both at the Python level and the C binary level. -- Robert Kern "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
participants (3)
-
Francesc Altet
-
Keith Goodman
-
Robert Kern