#7502: lazy import module
------------------------------+---------------------------------------------
Reporter: robertwb | Owner: was
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.3
Component: user interface | Keywords:
Work_issues: | Author:
Reviewer: | Merged:
------------------------------+---------------------------------------------
This is something I came up with when trying to reduce sage start up time.
{{{
2.033 sage.all (None)
0.407 sage.server.all (sage.all)
0.404 notebook.all (sage.server.all)
0.365 sage.server.notebook.notebook (notebook.all)
...
}}}
Now notebook() needs to be in the global namespace, but usually the entire
notebook server does not need to be loaded. I'm sure there's other
trimming we could do here as well.
It's unclear what level to put this in, but I would think
sage.server.notebook.all would be a good place (e.g. we could lazily
import interact.*, sage_email.*, and lazily import notebook and
inotebook). That could cut down startup time by 25%.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7502>
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].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=.