#12313: Fix yet another memory leak caused by caching of coercion data
--------------------------------------------------+-------------------------
       Reporter:  SimonKing                       |         Owner:  rlm         
                                                        
           Type:  defect                          |        Status:  
needs_review                                                        
       Priority:  major                           |     Milestone:  sage-5.3    
                                                        
      Component:  memleak                         |    Resolution:              
                                                        
       Keywords:  coercion weak dictionary        |   Work issues:  Rebase wrt 
the new version of #715. Take into account Nils' comments
Report Upstream:  N/A                             |     Reviewers:  Simon King, 
Jean-Pierre Flori, John Perry                           
        Authors:  Simon King, Jean-Pierre Flori   |     Merged in:              
                                                        
   Dependencies:  #11521, #11599, #12969, #12215  |      Stopgaps:              
                                                        
--------------------------------------------------+-------------------------

Comment (by SimonKing):

 Meanwhile it seems to me that the `__contains__` method of both `MonoDict`
 and `TripleDict` is too complicated: Currently, the content of the buckets
 is looked up. However, `self._refcache` should also indicate what keys
 exist. So, it should be faster to look up `self._refcache`, and not the
 buckets.

 Perhaps it is a bit improper to fix the `__contains__` method of
 `TripleDict` here, even though it was introduced in #715 which isn't
 merged. Hence, my plan is now to fix 'TripleDict.__contains__` there,
 rebase the patches from the other tickets if needed, and fix
 `MonoDict.__contains__` here.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12313#comment:133>
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