Ticket #4639 (closed defect: fixed)
[with patch, positive review] bad memory leak with exponentiation
| Reported by: | bober | Owned by: | somebody |
|---|---|---|---|
| Priority: | blocker | Milestone: | sage-3.2.2 |
| Component: | basic arithmetic | Keywords: | |
| Cc: | robertwb | Author(s): | |
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description
I think that the following example speaks for itself. (This was on an x86, 32 bit, running Ubuntu.)
Also, I believe that these examples had no problems in sage 3.0.2.
bober@bober:~/math/tests$ sage
----------------------------------------------------------------------
| Sage Version 3.2, Release Date: 2008-11-20 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: get_memory_usage()
114.5546875
sage: for z in xrange(10000):
...: a = 3^i
...:
sage: get_memory_usage()
121.4375
sage: for z in xrange(10000):
a = 3^CC.0
...:
sage: get_memory_usage()
128.96484375
sage: for z in xrange(10000):
a = 3.0^CC.0
...:
sage: get_memory_usage()
187.36328125
sage: var('t')
t
sage: for z in xrange(10000):
a = 3.0^t
....:
sage: get_memory_usage()
231.4609375
sage: #But, integer^integer is OK:
sage: for z in xrange(10000):
a = 3^3
....:
sage: get_memory_usage
<function get_memory_usage at 0x8415f0c>
sage: get_memory_usage()
231.58984375
sage: for z in xrange(10000):
a = 3^3
....:
sage: get_memory_usage()
231.58984375
sage: for z in xrange(10000):
a = 3.0^CC.0
....:
saget_memory_usage()
290.1640625
sage: for z in xrange(10000):
a = CC.0^CC.0
....:
sage: get_memory_usage()
290.1640625
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

