I've finished with an implementation of Riemann theta functions in Sage. (See patch #6371 <http://trac.sagemath.org/sage_trac/ticket/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 sage/all.py:
sage: import gc sage: import inspect sage: from sage import * sage: frames=[x for x in gc.get_objects() if inspect.isframe(x)] sage: len(frames) 11 (The output has changed from 11 to 26.) So, I have a few questions. First, what does the above code actually do? I'm unfamiliar with the gc and inspect modules. Any references would be appreciated. Second, what would be a good fix for this issue? I don't how how serious of an issue this is. In the comments thread I explain the class structure of my code <http://trac.sagemath.org/sage_trac/ticket/6371#comment:29>. Any suggestions on how to improve that constructor code? I can't think of any other part of the code where I would introduce memory leaks. Would leaving this alone cause major performance issues with Sage? Thank you for any suggestions. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org