#15493: Memory leak in QQbar
-----------------------------+----------------------------
Reporter: mmezzarobba | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.0
Component: number fields | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------
`sage.rings.qqbar.ANRoot._interval_fast()` creates new interval fields by
`type(self._interval.parent())(prec)`, thus bypassing the cache provided
by `RealIntervalField()`. Computations with algebraic numbers sometimes
need gigabytes of memory to store these parents and the associated
coercion structures.
The best (natural) example I have is ,using
[http://www.risc.jku.at/research/combinat/software/ore_algebra/index.php
ore_algebra]:
{{{
sage: from ore_algebra import *; R.<n> = QQ[]; A.<Sn> = OreAlgebra(R)
sage: rec = (n^2+10*n+24)*Sn^6 + (-16*n-64)*Sn^4 + (-4*n-14)*Sn^3 +
64*Sn^2 + 32*Sn
sage: rec.generalized_series_solutions(1, infolevel=5)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15493>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.