#4639: bad memory leak with exponentiation
------------------------------+---------------------------------------------
 Reporter:  bober             |        Owner:  somebody  
     Type:  defect            |       Status:  new       
 Priority:  blocker           |    Milestone:  sage-3.2.2
Component:  basic arithmetic  |   Resolution:            
 Keywords:                    |  
------------------------------+---------------------------------------------
Comment (by SimonKing):

 Another data point.

 I took the example from #4683 (Michael, it was argued that #4683 is a
 duplicate).
 {{{
 sage: get_memory_usage()
 704.5390625
 sage: v = [CDF(i)^2 for n in range(50000)]
 sage: get_memory_usage()
 803.67578125
 ...
 sage: get_memory_usage()
 1093.203125
 sage: del v
 sage: get_memory_usage()
 1093.203125
 sage: v = [CDF(i)^2 for n in range(50000)]
 sage: get_memory_usage()
 1183.86328125
 sage: del v
 sage: get_memory_usage()
 1183.86328125
 sage: v=1
 sage: get_memory_usage()
 1183.86328125
 ...
 sage: v = [CDF(i)^2 for n in range(50000)]
 sage: get_memory_usage()
 1279.55078125
 sage: w = deepcopy(v)
 sage: get_memory_usage()
 1295.18359375
 sage: del w
 sage: get_memory_usage()
 1295.18359375
 }}}

 Therefore it seems to me that the problem is not exponentiation but a
 failure in deallocation.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4639#comment:27>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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