Changes between Initial Version and Version 24 of Ticket #9129


Ignore:
Timestamp:
06/22/12 14:05:17 (7 years ago)
Author:
zimmerma
Comment:

I updated the description.

Paul

PS: it seems the "stopgaps" were deleted, but I don't know which value it was...

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9129

    • Property Cc robertwb malb craigcitro mderickx was burcin jpflori added
    • Property Keywords sd35.5 added
  • Ticket #9129 – Description

    initial v24  
    66    print get_memory_usage(m)
    77}}}
    8 I noticed another sqrt-related memory leak:
     8or simpler:
    99{{{
    10 sage: cat leak.sage
    11 for i in range(10^6):
    12    Mod(2^32+1,3).sqrt()
    13    if i % 10000 == 0:
    14       print i, get_memory_usage()
    15 sage: load leak.sage
    16 0 947.37109375
    17 10000 970.4375
    18 20000 993.8671875
    19 30000 1017.25
    20 40000 1040.734375
    21 50000 1064.19921875
    22 ...
     10m = get_memory_usage()
     11i=0
     12while True:
     13    i+=1
     14    a = 2.sqrt()
     15    if i%1000==0:
     16        print get_memory_usage(m)
    2317}}}
    24 This leaks about 23Mb per 10^^4 loops, thus about 2.3Kb per loop!