From: Roman G. <rom...@gm...> - 2005-06-22 11:39:56
|
Hi The leak in ll_mat.keys() should be fixed now. A new version of pysparse has been released. Thanks again for reporting -- Roman On 6/21/05, cc...@cs... <cc...@cs...> wrote: > no problemo, pysparse is pretty good all round. >=20 > cheers >=20 > Quoting Roman Geus <rom...@gm...>: >=20 > > Hi > > > > The keys() method is a fairly new 3rd party contribution. I'll look > > into this. Thanks for pointing this out. > > > > -- Roman > > > > On 6/21/05, cc...@cs... <cc...@cs...> wrote: > > > hi Roman, > > > > > > sorry about the false alarm, it's actually the keys() function that i= s > > > leaking. > > > > > > for example > > > > > > import spmatrix > > > > > > dim =3D 10000000 > > > > > > c =3D spmatrix.ll_mat(dim,dim) > > > > > > for i in xrange(dim): > > > for j in range(3): > > > c[i,j] =3D 23.33 > > > > > > > > > for x in xrange(dim): > > > for k in c.keys(): > > > sum +=3D c[i,j] > > > > > > c chui > > > > > > Quoting Roman Geus <rom...@gm...>: > > > > > > > Hi > > > > > > > > None of the pysparse extension types implement weak referencing. > > > > However I was not aware of any reference counting bugs in these > > > > extension types, that would prevent deallocation of unreferenced > > > > objects. Do you have a small example that illustrates the problem? > > > > > > > > -- Roman > > > > > > > > On 6/19/05, cc...@cs... <cc...@cs...> wrote: > > > > > hi, > > > > > > > > > > while using pysparse i found that each ll_mat objects created are > > not > > > > > garbage even when there are no reference for it anymore. > > > > > > > > > > This will result in excessive memory usage, when I did a slice of > > the > > > > full > > > > > matrix. > > > > > > > > > > Do you think it might have something to do with ll_mat haven't > > > > implemented > > > > > weak referenced yet? > > > > > > > > > > http://docs.python.org/lib/weakref-extension.html > > > > > > > > > > Please advice. > > > > > > > > > > Thanks! > > > > > c chui > > > > > > > > > > ---------------------------------------------------------------- > > > > > This message was sent using IMP, the Internet Messaging Program. > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > SF.Net email is sponsored by: Discover Easy Linux Migration > > Strategies > > > > > from IBM. Find simple to follow Roadmaps, straightforward > > articles, > > > > > informative Webcasts and more! Get everything you need to get up > > to > > > > > speed, fast. > > http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick > > > > > _______________________________________________ > > > > > Pysparse-developers mailing list > > > > > Pys...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/pysparse-developers > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------- > > > This message was sent using IMP, the Internet Messaging Program. > > > > > >=20 >=20 >=20 >=20 > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > |