#12691: Create a stopgap warning
-------------------------------+--------------------------------------------
Reporter: roed | Owner: jason
Type: enhancement | Status: positive_review
Priority: major | Milestone: sage-5.0
Component: misc | Resolution:
Keywords: rd2 | Work issues:
Report Upstream: N/A | Reviewers:
Authors: David Roe | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Comment (by was):
I think this code is too slow. We want it to be highly optimized so as to
not have much of a performance penalty for introducing a stopgap. I'm
going to attach a different patch that implements stopgaps, and is an
*order of magnitude* faster than this code:
{{{
sage: timeit("sage.misc.misc.stopgap('abc', 123)", number=10^5)
100000 loops, best of 3: 2.49 µs per loop
sage: import sage.misc.stopgap
sage: timeit("sage.misc.stopgap.stopgap('abc', 123)", number=10^5)
100000 loops, best of 3: 388 ns per loop
sage: 2.49 / .388
6.41752577319588
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12691#comment:4>
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.