#16881: Fix caching of NumberField_generic.__pari_bnf_certified
-------------------------------------+-------------------------------------
Reporter: pbruin | Owner:
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-6.4
Component: number fields | Resolution:
Keywords: cache, | Merged in:
performance | Reviewers:
Authors: Peter Bruin | Work issues:
Report Upstream: N/A | Commit:
Branch: | 22f08ac36130ed6810608b47ae2527ad513f6d06
u/pbruin/16881-pari_bnf_caching | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by pbruin):
* status: new => needs_review
* commit: => 22f08ac36130ed6810608b47ae2527ad513f6d06
* branch: => u/pbruin/16881-pari_bnf_caching
Comment:
Before:
{{{
sage: K.<a> = NumberField(x^2 - 17*x - 8)
sage: K.pari_bnf();
sage: %timeit K.pari_bnf()
100 loops, best of 3: 3.01 ms per loop
}}}
After:
{{{
sage: K.<a> = NumberField(x^2 - 17*x - 8)
sage: K.pari_bnf();
sage: %timeit K.pari_bnf()
1000000 loops, best of 3: 1.56 μs per loop
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16881#comment:1>
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/d/optout.