[NumPy-Tickets] [NumPy] #2216: Memory leak in comparison of array with list?

NumPy Trac numpy-tickets@scipy....
Mon Sep 17 15:09:54 CDT 2012


#2216: Memory leak in comparison of array with list?
-----------------------------+----------------------------------------------
 Reporter:  Hauke            |       Owner:  somebody   
     Type:  defect           |      Status:  new        
 Priority:  normal           |   Milestone:  Unscheduled
Component:  numpy.core       |     Version:  1.6.2      
 Keywords:  list comparison  |  
-----------------------------+----------------------------------------------
 on 64bit Ubuntu 10.04, virtualenv 1.7.2, Python 2.7.3, Numpy 1.6.2, this

 import numpy as np
 r = np.random.rand(2)
 l = []
 while True:
     r == l

 causes growing memory usage reproducibly. Could not be reproduced on
 Python 2.6.6, NumPy 1.4.1.

 Also posted in http://stackoverflow.com/questions/12461413/why-does-
 comparison-of-a-numpy-array-with-a-list-consume-so-much-memory

 Regards,

 Hauke Holtkamp

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2216>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list