#10570: sage leaves a lot of stackframes alive at startup
------------------------+---------------------------------------------------
   Reporter:  mderickx  |       Owner:  rlm       
       Type:  defect    |      Status:  new       
   Priority:  critical  |   Milestone:  sage-4.6.2
  Component:  memleak   |    Keywords:            
     Author:            |    Upstream:  N/A       
   Reviewer:            |      Merged:            
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by davidloeffler):

 The vast majority of the stack frames are saved by the coercion model for
 use in its introspection mechanism. Adding the line
 {{{
 get_coercion_model().exception_stack()
 }}}

 at the end of {{{sage/all.py}}} kills all but 9 of the 26 stack frames
 listed above. Of the remaining 9, 8 are to do with IPython. The other one
 is some silly generator in the combinatorics module that is there to
 compute factorials; I don't know why they don't call the general-purpose
 factorial function.

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