#15367: Empty lists while creating parents
-------------------------------------+-------------------------------------
       Reporter:  roed               |        Owner:
           Type:  defect             |       Status:  new
       Priority:  major              |    Milestone:  sage-5.13
      Component:  memleak            |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Nils Bruin         |    Reviewers:  Simon King
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/SimonKing/ticket/15367           |  a2852e9610a76e6df392544b01b8e3c319b1cdd4
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 With the attached branch, I repeated the example from the ticket
 description:
 {{{
 sage: import gc
 sage: pre = gc.get_objects()
 sage: K = Qp(7,2)
 sage: post = gc.get_objects()
 sage: len(post) - len(pre)
 211
 }}}

 And from comment:2 (starting a new session):
 {{{
 sage: M = []
 sage: memus= get_memory_usage()
 sage: for i in primes_first_n(1000):
 ....:     K = Qp(i,2)
 ....:     y=2-K(2)
 ....:     del K,y
 ....:     if i%100 == 1:
 ....:         gc.collect()
 ....: gc.collect()
 ....: print get_memory_usage(memus)
 ....:
 30
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 0
 12.48828125
 }}}
 With sage-5.12.beta5+#13394, I get only "0" for gc.collect(), and in the
 end it get_memory_usage(memus) returns 30.2265625.

 I have to leave now, but will tell something about memory footprint later.

--
Ticket URL: <http://trac.sagemath.org/ticket/15367#comment:20>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to