#4671: [with patch; needs review] sage-3.2.1 startup time: it sucks again
----------------------+-----------------------------------------------------
Reporter: was | Owner: boothby
Type: defect | Status: new
Priority: critical | Milestone: sage-3.2.2
Component: notebook | Keywords:
----------------------+-----------------------------------------------------
On OS X the Sage startup time is horrible. Doing sage -startuptime
yields:
{{{
== Slowest (including children) ==
1.604 sage.all (None)
0.453 sage.server.all (sage.all)
0.449 notebook.all (sage.server.all)
0.445 notebook_object (notebook.all)
0.441 notebook (notebook_object)
0.352 worksheet (notebook)
0.345 twist (worksheet)
0.329 sage.misc.all (sage.all)
0.246 twisted.web2 (twist)
0.125 sage_timeit_class (sage.misc.all)
0.125 sage_timeit (sage_timeit_class)
}}}
I'm pretty suspicious, because the twisted stuff does *not* have to be
imported at all for Sage to startup and in fact I put a lot of effort into
making sure they don't (it's really annoying that they are suddenly being
imported again!)
The tiny attached patch just moves a few imports and for me on OS X
reduces the startup time of Sage from about 1.64 to 1.273. It also
includes a doctest that makes sure twisted will *never* get imported on
startup by default.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4671>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---