#11732: faster import of sage.interacts.all
-----------------------------+----------------------------------------------
Reporter: saraedum | Owner: itolkov, jason
Type: enhancement | Status: positive_review
Priority: minor | Milestone: sage-4.7.2
Component: interact | Keywords: sd32
Work_issues: | Upstream: N/A
Reviewer: William Stein | Author: Julian Rueth
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Changes (by leif):
* reviewer: => William Stein
Old description:
> ''sage.interact.all'' imports functions which have controls from
> ''sagenb.notebook.interact'' as default parameters. These take some time
> to initialize. The attached patch improves this situation:
>
> {{{
> $ dumbbench -- ./sage --startuptime
> Ran 23 iterations (3 outliers).
> Rounded run time per iteration: 1.001e+00 +/- 2.2e-02 (2.2%)
> }}}
>
> vs.
>
> {{{
> $ dumbbench -- ./sage --startuptime
> Ran 24 iterations (4 outliers).
> Rounded run time per iteration: 9.56e-01 +/- 1.7e-02 (1.8%)
> }}}
New description:
''sage.interact.all'' imports functions which have controls from
''sagenb.notebook.interact'' as default parameters. These take some time
to initialize. The attached patch improves this situation:
{{{
$ dumbbench -- ./sage --startuptime
Ran 23 iterations (3 outliers).
Rounded run time per iteration: 1.001e+00 +/- 2.2e-02 (2.2%)
}}}
vs.
{{{
$ dumbbench -- ./sage --startuptime
Ran 24 iterations (4 outliers).
Rounded run time per iteration: 9.56e-01 +/- 1.7e-02 (1.8%)
}}}
----
Apply
[attachment:http://trac.sagemath.org/sage_trac/attachment/ticket/11732/trac_11732_sagenb_interact.patch]
to the '''SageNB''' repository.
--
Comment:
Again, attachment comments make life easier, and putting the patches to
apply into the description simplifies things.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11732#comment:5>
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.