[sage-devel] Memory leaks in `while SR(float(0.5))` and in `a=gp('bnfinit(x^2+1)')`

2023-08-13 Thread Georgi Guninski
This may be fixed by the fix for sqrt(2), but I don't have such build. I haven't done exact profile of the memory leak and measure it with the "task manager" of XFCE. The leak is about few megabytes per seconds. Session: ``` c=0 while SR(float(0.5)): c += 1 #leaks ``` According to my tests the

[sage-devel] Memory leaks

2018-12-03 Thread Samuel Lelievre
Following the recent surge of interest in memory leaks, can people with the relevant expertise revisit the open tickets on that theme: check whether the leaks they report can still be observed, narrow down their cause, fix them if possible? Here is a Trac query revealing a number of such tickets.

[sage-devel] Memory leaks from poset

2015-07-17 Thread Jori Mäntysalo
I just made some testing. For example this shows small memory leak: i = 0 for P in Posets(7): if i%1000 == 0: print i, get_memory_usage() i += 1 Or does it? At least when I run same code again, it will eat still more memory. Then, after P7=Posets(7).list() for example i = 0

[sage-devel] Memory leaks on matrix creation?

2015-07-13 Thread Jori Mäntysalo
I was asked to make a code that iterates over all matrices of given type and size. And once again I see a memory leak. Here's an example code n = 7 m = Integer(n*(n-1)/2) for i in IntegerRange(2^m): d = i.digits(base=2, padto=m) l = [[1]+[0]*(n-1)] for j in range(n-1): l.appe

Re: [sage-devel] Memory Leaks in #6371?

2011-12-14 Thread Chris Swierczewski
> Change your code so the actual Riemann theta module isn't imported > until a users actually wants to use it (e.g. use lazy_import). Then > it won't trigger an issue with all.py at startup. This is also > generally a good idea to keep from further impacting Sage's startup > time. > Thanks for

Re: [sage-devel] Memory Leaks in #6371?

2011-12-14 Thread William Stein
On Wed, Dec 14, 2011 at 10:25 AM, Chris Swierczewski wrote: > I've finished with an implementation of Riemann theta functions in Sage. > (See patch #6371.) Unfortunately, as shown at the bottom of the comment > thread for #6371, my code seems to be introducing memory leaks. The culprit > doctest f

[sage-devel] Memory Leaks in #6371?

2011-12-14 Thread Chris Swierczewski
I've finished with an implementation of Riemann theta functions in Sage. (See patch #6371 .) Unfortunately, as shown at the bottom of the comment thread for #6371, my code seems to be introducing memory leaks. The culprit doctest failure is in sag

[sage-devel] Memory leaks

2007-02-14 Thread Iftikhar Burhanuddin
Hi folks, The following piece of code seems to leak a lot of memory (with/without the statement 'del X') during long runs of computation: while true: X = SupersingularModule(p) X.hecke_matrix(2) del X p = ZZ(p).next_prime() To pin down the souce of leakage, I