#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      
------------------------+---------------------------------------------------
Changes (by SimonKing):

 * cc: robertwb (added)


Comment:

 At [http://groups.google.com/group/sage-
 devel/browse_thread/thread/8b2fba49fe1ee69e sage-devel], Robert Bradshaw
 suggested the following benchmark, measuring the impact of the new
 `TripleDict` on multiplication of integers with `RDF` (which does involve
 actions and thus does involve lookup in `TripleDict`):
 {{{
 sage: def test(n):
 ....:     a = Integer(10)
 ....:     b = QQ(20)
 ....:     s = RDF(30)
 ....:     for x in xrange(10**n):
 ....:         s += a*b*x
 ....:
 }}}

 With Sage-5.0.prealpha0+#11780:
 {{{
 sage: %time test(6)
 CPU times: user 7.25 s, sys: 0.04 s, total: 7.29 s
 Wall time: 7.31 s
 }}}
 and with the patch from here added
 {{{
 sage: %time test(6)
 CPU times: user 7.29 s, sys: 0.01 s, total: 7.31 s
 Wall time: 7.31 s
 }}}

 So, yet another supporting data point!

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