The new "sage -startuptime" is supposed to do the accounting correctly, 
that is, only count the time spent importing the current module. Though of 
course adding stuff to dicts is not constant time and does depend on 
ordering...



On Tuesday, March 5, 2013 9:18:20 AM UTC-10, Robert Bradshaw wrote:
>
> On Wed, Feb 27, 2013 at 2:24 AM, Simon King 
> <simon...@uni-jena.de<javascript:>> 
> wrote: 
> > Hi Volker, 
> > 
> > On 2013-02-27, Volker Braun <vbrau...@gmail.com <javascript:>> wrote: 
> >> The output of "sage -startuptime" only lists the 50 slowest modules, 
> not 
> >> all. 
> > 
> > OK. But *with* the patch, sage.plot.graphics is the 6th slowest module, 
> > and much much slower than _ssl, for example---but _ssl is among the 50 
> > slowest modules *without* the patch. 
> > 
> > I can hardly imagine that the timings are so extremely unstable (we are 
> > talking about > 20ms versus < 3.4ms). But perhaps they are: When I 
> repeated 
> > sage -startuptime now, it sage.plot.graphics showed up without the 
> patch. 
>
> I can attest that the timings are extremely unstable with regard to 
> what's imported where and their order. For example, why does sage.misc 
> take so long? Because it imports nearly half of sage.rings. Later 
> modules will be fast or slow depending on what's been sucked in 
> earlier. This is one of the reasons it's so hard to debug circular 
> imports and startup time. 
> https://plus.google.com/106060403099461455118/posts/KhGipCThNtN 
>
> http://trac.sagemath.org/sage_trac/attachment/ticket/11749/11749-unneeded-imports.patch#01155b7d76b047a334c460569e9e8c54
>  
> http://trac.sagemath.org/sage_trac/ticket/11762 
>
> - Robert 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to