#12313: Fix yet another memory leak caused by caching of coercion data
--------------------------------------------------+-------------------------
Reporter: SimonKing | Owner:
Type: defect | Status:
needs_review
Priority: major | Milestone: sage-5.3
Component: memleak | Resolution:
Keywords: coercion weak dictionary | Work issues:
Report Upstream: N/A | Reviewers: Simon King,
Jean-Pierre Flori, John Perry
Authors: Simon King, Jean-Pierre Flori | Merged in:
Dependencies: #11521, #11599, #12969, #12215 | Stopgaps:
--------------------------------------------------+-------------------------
Comment (by nbruin):
Replying to [comment:165 SimonKing]:
> Plus, one avoids code duplication. And aren't modern compilers
intelligent enough to do some loop unrolling automatically?
If you have a preprocessor, macro, or templating system then the `N` in
`N-Dict` can indeed be resolved at compile-time and then the compiler can
unroll. But I don't think Cython has parametric code generation (yet?)
> Anyway, since I already wrote code, I'll first test the performance,
rather than immediately dropping the idea of unifying `MonoDict` and
`TripleDict`.
OK! Compare with #13387. I suspect that your elusive `ptest` SEGVs might
be due to somewhat careless handling in the `Dict`s. When I was rewriting
them I found some places where Weakrefs were not properly checked before
concluding presence.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12313#comment:167>
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.