#715: Parents probably not reclaimed due to too much caching
------------------------+---------------------------------------------------
   Reporter:  robertwb  |          Owner:  somebody           
       Type:  defect    |         Status:  needs_review       
   Priority:  major     |      Milestone:  sage-4.8           
  Component:  coercion  |       Keywords:  weak cache coercion
Work_issues:            |       Upstream:  N/A                
   Reviewer:            |         Author:  Simon King         
     Merged:            |   Dependencies:  #9138, #11900      
------------------------+---------------------------------------------------

Comment(by SimonKing):

 I wouldn't use weak references for anything but caching. In particular,
 having a weak reference from a functor to its domain or codomain seems a
 no-go to me.

 In one point I agree: There should be a mechanism to keep an action alive
 as long as domain and codomain exist. But perhaps this is already the
 case? Isn't there an action cache as an attribute of any parent? And isn't
 the action stored there (and not only in the cache of the coercion model)
 when an action is discovered?

 So, before thinking of a weak reference from the functor to domain and
 codomain, I would first test whether the problem you describe actually
 occurs.

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