#13922: Avoid a regression in the creation of homsets
-------------------------------+--------------------------------------------
Reporter: SimonKing | Owner: tbd
Type: defect | Status: new
Priority: critical | Milestone: sage-5.6
Component: performance | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: #715 | Stopgaps:
-------------------------------+--------------------------------------------
Comment (by SimonKing):
With the following patch, the homsets are taken from cache. I don't know
about timings (calling overhead) yet.
{{{
#!diff
diff --git a/sage/rings/real_mpfi.pyx b/sage/rings/real_mpfi.pyx
--- a/sage/rings/real_mpfi.pyx
+++ b/sage/rings/real_mpfi.pyx
@@ -2826,7 +2826,7 @@
# First, we try using approximate arithmetic of slightly higher
# precision.
cdef RealIntervalFieldElement highprec
- highprec = RealIntervalField_class(int(self.prec() * 1.2))(self)
+ highprec = RealIntervalField(int(self.prec() * 1.2))(self)
cdef Rational try1 = highprec._simplest_rational_helper()
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13922#comment:14>
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.