From: Nicola C. <nc...@in...> - 2013-04-18 08:23:04
|
Hello, I found a memory leak using pysparse if I create and fill an array several times. At each step the memory increases. I attached an example script that reproduces the problem. Thanks. Cheers. Nicola from pysparse import spmatrix def do(): A = spmatrix.ll_mat(256**2, 256**2) for x in range(256): for y in range(256): k = y*256+x A[k,k] = 1 return A if __name__ == '__main__': for i in range(1024): b= do() -- _____________________________________________________________________ Nicola Creati Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS IRI (Ricerca Teconologica e Infrastrutture) Department B.go Grotta Gigante - Brisciki 42/c 34010 Sgonico - Zgonik (TS) - Italy Tel. +39-0402140213 Fax +39-040327307 |