#715: Parents probably not reclaimed due to too much caching
-------------------------------------------------------------------+--------
       Reporter:  robertwb                                         |         
Owner:  somebody                                 
           Type:  defect                                           |        
Status:  needs_review                             
       Priority:  major                                            |     
Milestone:  sage-5.4                                 
      Component:  coercion                                         |    
Resolution:                                           
       Keywords:  weak cache coercion Cernay2012                   |   Work 
issues:                                           
Report Upstream:  N/A                                              |     
Reviewers:  Jean-Pierre Flori, Simon King, Nils Bruin
        Authors:  Simon King, Jean-Pierre Flori                    |     Merged 
in:                                           
   Dependencies:  #9138, #11900, #11599, to be merged with #11521  |      
Stopgaps:                                           
-------------------------------------------------------------------+--------

Comment (by nbruin):

 Oh sigh ... this could be such a red herring. On bsd.math, there is a huge
 difference between sage versions in how this piece of code behaves:
 On `sage 5.4.beta0` (with patches):
 {{{
 sage: PF = WeylGroup(['A',3]).pieri_factors()
 sage: %time a = PF.an_element()
 CPU times: user 0.06 s, sys: 0.05 s, total: 0.11 s
 Wall time: 43.57 s
 }}}
 On `sage 5.2beta1` (happens to be the system-wide sage install on bsd):
 {{{
 sage: PF = WeylGroup(['A',3]).pieri_factors()
 sage: %time a = PF.an_element()
 CPU times: user 0.06 s, sys: 0.05 s, total: 0.10 s
 Wall time: 0.44 s
 }}}
 The 5.4b0 time is really anomalous. On another system, 5.3rc1+patches
 behaves very comparably to 5.0 for me. So there is something fishy with
 this.

 The method eventually called, PF._an_element_, is a very interesting piece
 of work. It's recursive and exercises the coercion system really well. So
 lots of opportunities to foul up caches and memory. Implicated in all of
 this, by the way:
 {{{
 class WeylGroup_gens(ClearCacheOnPickle, UniqueRepresentation,
 MatrixGroup_gens)
 }}}

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