#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:  Improve timing and provid documentation  |       Upstream:  N/A   
             
   Reviewer:                                           |         Author:  Simon 
King         
     Merged:                                           |   Dependencies:  
#9138, #11900      
-------------------------------------------------------+--------------------
Changes (by SimonKing):

  * work_issues:  Get some timings => Improve timing and provid
                  documentation


Comment:

 I have updated the patch. Instead of storing the original key and using
 `Py_DECREF`, I store its address instead (for `TripleDictId`) resp. use
 another weak reference.

 With the new patch, `sage -t "devel/sage-
 main/sage/modules/free_module.py"` works and is about as fast as in
 vanilla sage.

 Moreover, the memleak is fixed.

 However, the patch isn't fully tested or documented yet. And still
 `TripleDictById` is only half as fast as the old `TripleDict` (but recall:
 The old is buggy and uses strong references). So, it isn't ready for
 review, but of course I'd appreciate preliminary comments.

 Apply trac715_tripledict_combined.patch

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