Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3222 by [email protected]: Memory used for creating symbols is
not freed when no longer in use
http://code.google.com/p/sympy/issues/detail?id=3222
When creating a lot of symbols, the memory assigned to them is not freed
when there is no longer any reference to them. The following program use a
lot of memory (more than 1.7GB ) although it only has one reference to the
object.
-------------
import sympy
n = 400000
for i in xrange(n):
u=sympy.symbols('Re%d' %i, each_char=False)
4.3*u
7.8*u
6.3*u
9.12*u
14.3*u
17.48*u
--------------
The last 6 lines are not saved anywhere; nonetheless if you remove them the
program uses less memory.
I am using debian squeeze with python 2.6.6 and sympy 0.6.7-1.1., and I
also tried it on a Mac with python 2.7.2 and sympy 0.7.1
Best, Pablo.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.