Changes between Version 24 and Version 29 of Ticket #9129


Ignore:
Timestamp:
01/31/14 07:52:46 (6 years ago)
Author:
zimmerma
Comment:

the second example in the description still does a memory leak with Sage 6.0:

┌────────────────────────────────────────────────────────────────────┐
│ Sage Version 6.0, Release Date: 2013-12-17                         │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: m = get_memory_usage()
sage: i=0
sage: while True:
....:         i+=1
....:         a = 2.sqrt()
....:         if i%1000==0:
....:                 print get_memory_usage(m)
....:         
0.0
0.0
0.0
0.58984375
0.84375
1.234375
1.7421875
2.3828125
2.76171875
3.1484375
3.66796875
4.3203125
4.703125
5.08984375
5.4765625
6.23828125

The fact that it works with prec does not help for this ticket, which deals with exact square root.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9129

    • Property Milestone changed from sage-5.11 to sage-6.2
  • Ticket #9129 – Description

    v24 v29  
    1 cf http://groups.google.com/group/sage-support/browse_thread/thread/8c18b2b91004c35a#:
     1cf http://groups.google.com/group/sage-support/browse_thread/thread/8c18b2b91004c35a#
     2(this first example does not leak memory any more in Sage 6.0)
    23{{{
    34sage: m = get_memory_usage()
     
    67    print get_memory_usage(m)
    78}}}
    8 or simpler:
     9or simpler (this one still leaks memory in Sage 6.0):
    910{{{
    1011m = get_memory_usage()