#13981: Faster int -> Integer coercion for common ints
-------------------------------------+-------------------------------------
Reporter: robertwb | Owner: AlexGhitza
Type: enhancement | Status: positive_review
Priority: major | Milestone: sage-6.2
Component: basic arithmetic | Resolution:
Keywords: | Merged in:
Authors: Robert Bradshaw | Reviewers: Paul Zimmermann, Marc
Report Upstream: N/A | Mezzarobba
Branch: | Work issues:
u/mmezzarobba/13981-small_int | Commit:
Dependencies: #12615 | 9ab4bd04dfac93d95c7b169be62a3054f2eef850
| Stopgaps:
-------------------------------------+-------------------------------------
Comment (by zimmerma):
I confirm the speedup on my machine.
Vanilla 6.0:
{{{
sage: sage: E = EllipticCurve('37a')
sage: v = E.anlist(10000, python_ints=True)
sage: %timeit [ZZ(a) for a in v]
100 loops, best of 3: 15.3 ms per loop
}}}
With the patch applied:
{{{
sage: sage: E = EllipticCurve('37a')
sage: v = E.anlist(10000, python_ints=True)
sage: %timeit [ZZ(a) for a in v]
100 loops, best of 3: 13.2 ms per loop
}}}
Paul
--
Ticket URL: <http://trac.sagemath.org/ticket/13981#comment:24>
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.