#13057: introspection is slow
--------------------------------------------+-------------------------------
       Reporter:  bober                     |         Owner:  mvngu   
           Type:  defect                    |        Status:  new     
       Priority:  major                     |     Milestone:  sage-5.1
      Component:  documentation             |    Resolution:          
       Keywords:  regression introspection  |   Work issues:          
Report Upstream:  N/A                       |     Reviewers:          
        Authors:                            |     Merged in:          
   Dependencies:                            |      Stopgaps:          
--------------------------------------------+-------------------------------

Comment (by bober):

 Replying to [comment:10 ppurka]:
 > There doesn't seem to be much of a difference from sage-4.7 (it is a
 different machine though)
 > {{{
 > ~> ./sage-4.7/sage -q
 > sage: from sage.misc.sageinspect import sage_getd
 > sage_getdef  sage_getdoc
 > sage: from sage.misc.sageinspect import sage_getdoc
 > sage: %time L = sage_getdoc(gcd)
 > CPU times: user 0.39 s, sys: 0.09 s, total: 0.48 s
 > Wall time: 0.53 s
 > }}}
 > This test on sage-4.7 is done on a
 > {{{
 > model name    : Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz
 > }}}
 > a virtual machine with 4 cpu cores and with 20G of memory.
 >
 > The earlier tests were done on my laptop
 > {{{
 > model name    : Intel(R) Core(TM) i5 CPU       M 460  @ 2.53GH
 > }}}
 > with 2 cores (4 with HT) and with 4G of memory.

 Try running the sage_getdoc function a few times in a row with the same
 input on 4.7 and 5.0 (or just using the question mark) and you should see
 the difference. You really need to do it a few times in a row, though. The
 first time may be slow because it is reading from disk (a "warm cache"
 from starting up sage is not enough to prevent this) but it should not
 remain slow.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13057#comment:12>
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.

Reply via email to