#11868: PARI library interface broken by design
---------------------------------------+------------------------------
Reporter: jdemeyer | Owner: was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.13
Component: interfaces | Resolution:
Keywords: t0GEN t1GEN gen | Merged in:
Authors: Peter Bruin | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: #864, #9640, #10018 | Stopgaps:
---------------------------------------+------------------------------
Comment (by pbruin):
Your change to `__int__()` and `__long__()` gives a major slowdown due to
the importing of `Integer` (a factor of more than 6 for small examples on
my system). The `late_import()` does look ugly; it may be slightly nicer
to inline it in `__int__()` and `__long__()` as
{{{
global Integer
if Integer is None:
import sage.rings.integer
Integer = sage.rings.integer.Integer
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/11868#comment:31>
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.