#5970: Weak references in Polynomial Ring cache
--------------------------------------------+-------------------------------
   Reporter:  SimonKing                     |          Owner:  malb             
                   
       Type:  defect                        |         Status:  needs_work       
                   
   Priority:  critical                      |      Milestone:  sage-4.8         
                   
  Component:  commutative algebra           |       Keywords:  polynomial ring 
cache weak reference
Work_issues:  regression for test_ec_leak?  |       Upstream:  N/A              
                   
   Reviewer:                                |         Author:                   
                   
     Merged:                                |   Dependencies:                   
                   
--------------------------------------------+-------------------------------

Comment(by SimonKing):

 Interesting. Heapy shows (again with the example from the ticket
 description) that most of the memory is filled by strings:
 {{{
 sage: H.heap()
 Partition of a set of 479076 objects. Total size = 78965680 bytes.
  Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
      0 228412  48 38602736  49  38602736  49 str
      1 123581  26 10681888  14  49284624  62 tuple
      2   1755   0  4241544   5  53526168  68 dict of module
      3   4657   1  3835672   5  57361840  73 dict (no owner)
      4  29863   6  3583560   5  60945400  77 function
      5  29851   6  3582120   5  64527520  82 types.CodeType
      6   3071   1  2974952   4  67502472  85 dict of type
      7   3071   1  2759672   3  70262144  89 type
      8   6651   1  1202264   2  71464408  91 list
      9    937   0   922072   1  72386480  92 dict of class
 <1072 more rows. Type e.g. '_.more' to view.>
 }}}

 What are these strings? Messages of cached exceptions (there is a ticket
 concerning cached exceptions, but I can't find it right now)? Keys of
 dictionaries? But then we should also see the corresponding values.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5970#comment:30>
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 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-trac?hl=en.

Reply via email to