ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 09 Jan 2017 08:42:30 -0600Memory leak with modular symbols?http://ask.sagemath.org/question/36225/memory-leak-with-modular-symbols/I run the following code:
DB = CremonaDatabase()
for N in range(1,10000):
Cs = DB.isogeny_classes(N)
for C in Cs:
E=EllipticCurve(C[0][0])
phi=E.modular_symbol()
and the memory used keeps going up and up and up.
This must be related to the fact that the modular symbol data is cached. Is there a way I can clear out this memory usage? I want to be doing a computation with each such modular symbol and then just get rid of the modular symbol.Sun, 08 Jan 2017 15:21:45 -0600http://ask.sagemath.org/question/36225/memory-leak-with-modular-symbols/Answer by John Cremona for <p>I run the following code:</p>
<pre><code>DB = CremonaDatabase()
for N in range(1,10000):
Cs = DB.isogeny_classes(N)
for C in Cs:
E=EllipticCurve(C[0][0])
phi=E.modular_symbol()
</code></pre>
<p>and the memory used keeps going up and up and up. </p>
<p>This must be related to the fact that the modular symbol data is cached. Is there a way I can clear out this memory usage? I want to be doing a computation with each such modular symbol and then just get rid of the modular symbol.</p>
http://ask.sagemath.org/question/36225/memory-leak-with-modular-symbols/?answer=36230#post-id-36230This is a bug and is being dealt with at https://trac.sagemath.org/ticket/22164Mon, 09 Jan 2017 08:42:30 -0600http://ask.sagemath.org/question/36225/memory-leak-with-modular-symbols/?answer=36230#post-id-36230