Hi, I found a more simplified example:
print get_memory_usage() for i in xrange(10000): A(1,8,9) print get_memory_usage() Why is type(A) 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingu \lar' using memory? Roland On 20 jun, 16:18, Rolandb <[email protected]> wrote: > Hi, > > Look at: > > R.<A,B,C>=QQ[] > print get_memory_usage() > for i in xrange(10000): (an,bn,cn)=map(lambda x: abs(x((1,8,9))), > (A,B,C)) > print get_memory_usage() > > 819.94921875 > 828.94921875 > > Why is the memory usage increasing with 9Mb? This only happens when > "map" is used repeatedly! > > I would expect no increase at all. > > I'm using VMware+Sage 4.1, but I obtaining the same result on > sagenb:http://www.sagenb.org/home/pub/2164 > > Thanks in advance! Roland -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
