#6623: Memory leak when calling binomial
-----------------------+----------------------------------------------------
Reporter: hartke | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: symbolics | Keywords: binomial, leak
Reviewer: | Author:
Merged: |
-----------------------+----------------------------------------------------
There appears to be a memory leak when repeatedly calling binomial with
different parameters. This sometimes also appears when the parameters to
binomial are not varied, but is not consistent. This is a problem for the
Combinations rank code, which makes many repeated calls to binomial.
{{{
sage: import random
print get_memory_usage()
for i in xrange(100000):
x=random.randint(10,100)
y=random.randint(0,x)
r=binomial(x,y)
print get_memory_usage()
730.6328125
736.5625
}}}
The output is from running the code in Sage 4.1 on sagenb.org. I think
the same problem may involve the symbolic backend and GiNaC, since the
same problem also occurs with log.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6623>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---