#715: Parents probably not reclaimed due to too much caching
--------------------------------------------------------------------------------------------------+
   Reporter:  robertwb                                                          
                  |          Owner:  somebody           
       Type:  defect                                                            
                  |         Status:  needs_work         
   Priority:  major                                                             
                  |      Milestone:  sage-4.8           
  Component:  coercion                                                          
                  |       Keywords:  weak cache coercion
Work_issues:  Rename `TripleDictById` into `TripleDict`. Improve timing and 
update documentation  |       Upstream:  N/A                
   Reviewer:                                                                    
                  |         Author:  Simon King         
     Merged:                                                                    
                  |   Dependencies:  #9138, #11900      
--------------------------------------------------------------------------------------------------+
Changes (by SimonKing):

  * work_issues:  Improve timing and provid documentation => Rename
                  `TripleDictById` into `TripleDict`.
                  Improve timing and update documentation


Comment:

 OMG!!

 I totally misinterpreted how the keys were compared in the original
 version of `TripleDict`. When I saw the line `if PyList_GET_ITEM(bucket,
 i) == <PyObject*>k1` in the old code, I thought that this means to compare
 the objects by equality.

 But now I learnt that this is comparison by identity. Arrgh! The behaviour
 that I provide with `TripleDictById` was there all along!

 Conclusion: I should erase my version of `TripleDict` (which really
 compares by equality, not identity), rename my `TripleDictById` into
 `TripleDict`, and then finally try to get things up to speed.

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