this does not remind me of anything except 
http://trac.sagemath.org/ticket/3603 which is surely unrelated (different 
backend) and http://trac.sagemath.org/ticket/13447 but not so related 
either.

On Wednesday, September 10, 2014 1:03:15 AM UTC+2, Volker Braun wrote:
>
> I was dabbling in arithmetic when I noticed that the following leaks 
> memory at about a megabyte per second:
>
>     F.<a> = GF(11^2, 'a')
>     R.<x, y> = F[]
>     while True:
>         _ = x(a, a)
>
> Now I would have thought that evaluating polynomials is a fairly common 
> operation, so I'm sure somebody noticed this before? Is there a ticket (I 
> didn't find one)? Notice that it depends on both the givaro backend for 
> finite fields and multi-variate polynomials. 
>
> def leak(n):
>     import gc
>     gc.collect()
>     old = gc.get_objects()
>     for i in range(n):
>         _ = x(a, a)    # leak memory
>     gc.collect()
>     new = gc.get_objects()
>     return len(new) - len(old)
>
> always returns 1 so the leak is not in Python objects.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to