#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.0                
  Component:  memleak    |       Keywords:  coercion weak dictionary
Work_issues:             |       Upstream:  N/A                     
   Reviewer:             |         Author:  Simon King              
     Merged:             |   Dependencies:  #715                    
-------------------------+--------------------------------------------------

Comment(by vbraun):

 Replying to [comment:18 SimonKing]:
 > So, you agree with the statement from my previous post that keeping a
 reference from the element to the modulus would be the cleanest solution.

 Yes, agreed.

 In terms of space, adding a C pointer on top of a Python object is
 nothing. And I don't think that the time to store the address is
 measurable. Might even be free depending on how the CPU out-of-order
 execution. You'll certainly make up the time by not resolving a Python
 attribute in the destructor.

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