#11521: Memleak when resolving the action of Integers on an Elliptic Curve
------------------------+---------------------------------------------------
Reporter: jpflori | Owner: robertwb
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.8
Component: coercion | Keywords: sd35
Work_issues: | Upstream: N/A
Reviewer: | Author: Simon King
Merged: | Dependencies: #11900 #715
------------------------+---------------------------------------------------
Comment(by SimonKing):
Hi Jean-Pierre,
The thing with the _action_hash is a good finding. I thought it would be a
`TripleDict`, but it is just a usual dict. And this could indeed be a
problem. I don't know if this is visible to objgraph.
But also I think that in addition we have the problem of strong references
to the values of `TripleDict`. In principle, one could use weak references
for not only the keys but also to the values -- perhaps this could be done
in #715.
Or one could leave `TripleDict` as it is currently in #715, but explicitly
use weak references to functors for coercion (which needs to be enabled
first). _action_hash then has to use weak references as well.
There might be a speed problem, though.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11521#comment:79>
Sage <http://www.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.