#7879: Remove unnecessary signal handling for low prec mpfr operations.
--------------------------------+-------------------------------------------
Reporter: robertwb | Owner: AlexGhitza
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-4.7.1
Component: basic arithmetic | Keywords:
Work_issues: | Upstream: N/A
Reviewer: Alex Ghitza | Author: Robert Bradshaw
Merged: | Dependencies:
--------------------------------+-------------------------------------------
Changes (by robertwb):
* status: needs_work => needs_review
Comment:
{{{
----------------------------------------------------------------------
| Sage Version 4.7, Release Date: 2011-05-23 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Loading Sage library. Current Mercurial branch is: bitrot
sage: L = [RR(k) for k in range(1000)]
sage: %timeit [a.sqrt() for a in L]
625 loops, best of 3: 569 µs per loop
sage: %timeit [a.sqrt() for a in L]
625 loops, best of 3: 509 µs per loop
sage: %timeit [a.sqrt() for a in L]
625 loops, best of 3: 513 µs per loop
sage: timeit("[a.sqrt() for a in L]", number=10000)
10000 loops, best of 3: 519 µs per loop
sage:
Exiting Sage (CPU time 0m19.94s, Wall time 1m9.75s).
robertwb@sage:/scratch/robertwb/sage-4.7/devel/sage-bitrot$ hg qpush
applying 7879-RR-signal.patch
now at: 7879-RR-signal.patch
robertwb@sage:/scratch/robertwb/sage-4.7/devel/sage-bitrot$ ../../sage -br
[...]
----------------------------------------------------------------------
| Sage Version 4.7, Release Date: 2011-05-23 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Loading Sage library. Current Mercurial branch is: bitrot
sage: L = [RR(k) for k in range(1000)]
sage: %timeit [a.sqrt() for a in L]
625 loops, best of 3: 498 µs per loop
sage: %timeit [a.sqrt() for a in L]
625 loops, best of 3: 498 µs per loop
sage: %timeit [a.sqrt() for a in L]
625 loops, best of 3: 496 µs per loop
sage: timeit("[a.sqrt() for a in L]", number=10000)
10000 loops, best of 3: 499 µs per loop
}}}
Looks like about a 5% win (much smaller than I remember it being before).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7879#comment:11>
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.