#10262: memory leak in scalar*vector multiplication
------------------------------+---------------------------------------------
   Reporter:  dimpase         |       Owner:  jason, was                 
       Type:  defect          |      Status:  new                        
   Priority:  blocker         |   Milestone:  sage-4.6.1                 
  Component:  linear algebra  |    Keywords:  linear algebra, memory leak
     Author:                  |    Upstream:  N/A                        
   Reviewer:                  |      Merged:                             
Work_issues:                  |  
------------------------------+---------------------------------------------

Comment(by jason):

 As I mentioned on the thread, I tracked this down to a call from the
 coercion system to create an element of the parent.  The coercion system
 did this when it was trying to figure out the action of the number on the
 vector:

 The problem seems to stem from the lines

 {{{
      cdef Element x = X.an_element()
      cdef Element y = Y.an_element()
 }}}

 inside of the `detect_element_action` function in `coerce_actions.pyx`.
 Notice:
 {{{
 sage: v=vector(range(10000))
 sage: get_memory_usage()
 206.84765625
 sage: w=v.parent().an_element()
 sage: get_memory_usage()
 3321.14453125
 }}}

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