#15549: Streamline construction of PARI objects
-------------------------------------+-------------------------------------
Reporter: pbruin | Owner:
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-6.1
Component: interfaces | Resolution:
Keywords: pari performance | Merged in:
Authors: Peter Bruin | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/pbruin/15549-pari_gen_construction|
ccf233223fbad8f95d1b41097ca53afe2ca4b973
Dependencies: #15461 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by pbruin):
* changetime: 12/19/13 09:41:30 => 12/19/13 09:41:30
Old description:
> Clean up the construction of PARI objects by inlining some functions and
> initialising the `_refers_to` dictionary only when necessary.
>
> Before:
> {{{
> sage: %timeit -r 1 pari(0)
> 1000000 loops, best of 1: 1.02 us per loop
> }}}
> After:
> {{{
> sage: %timeit -r 1 pari(0)
> 1000000 loops, best of 1: 875 ns per loop
> }}}
New description:
Clean up the construction of PARI objects by inlining some functions and
initialising the `_refers_to` dictionary only when necessary.
Before:
{{{
sage: %timeit -r 1 pari(0)
1000000 loops, best of 1: 1.02 us per loop
}}}
After:
{{{
sage: %timeit -r 1 pari(0)
1000000 loops, best of 1: 875 ns per loop
}}}
Also modify gen.__init__() to raise an error instead of creating a gen
object wrapping NULL.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/15549#comment:6>
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.