From: Francesc A. <fa...@ca...> - 2006-08-11 20:42:01
|
Hi, I was tracking down a memory leak in PyTables and it boiled down to a probl= em=20 in the array protocol. The issue is easily exposed by: for i in range(1000000): numarray.array(numpy.zeros(dtype=3Dnumpy.float64, shape=3D3)) and looking at the memory consumption of the process. The same happens with: for i in range(1000000): numarray.asarray(numpy.zeros(dtype=3Dnumpy.float64, shape=3D3)) However, the numpy<--numarray sense seems to work well. for i in range(1000000): numpy.array(numarray.zeros(type=3D"Float64", shape=3D3)) Using numarray 1.5.1 and numpy 1.0b1 I think this is a relatively important problem, because it somewhat prevent= s a=20 smooth transition from numarray to NumPy.=20 Thanks, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |