#13400: Use strong caches diligently
-------------------------------+--------------------------------------------
       Reporter:  nbruin       |         Owner:  robertwb     
           Type:  enhancement  |        Status:  new          
       Priority:  major        |     Milestone:  sage-wishlist
      Component:  coercion     |    Resolution:               
       Keywords:               |   Work issues:               
Report Upstream:  N/A          |     Reviewers:               
        Authors:               |     Merged in:               
   Dependencies:               |      Stopgaps:               
-------------------------------+--------------------------------------------

Comment (by SimonKing):

 The following is on top of sage-5.2.beta3 plus #12313 and its
 dependencies.

 When I remove the custom is_subcategory method in
 covariant_functorial_constructions.pyx, and apply
 [attachment:trac_13400_subclass_hook_cython.patch], I get
 {{{
 sage: def test1(N,B,t):
 ....:     for i in range(t):
 ....:         m=matrix(QQ,N,N,srange(N*N)).echelon_form()
 ....:
 sage: %time test1(20,40,10^3)
 CPU times: user 7.04 s, sys: 0.06 s, total: 7.09 s
 Wall time: 7.11 s
 }}}
 When I apply my patch but keep the covariant functorial constructions as
 they are, I get
 {{{
 sage: def test1(N,B,t):
 ....:     for i in range(t):
 ....:         m=matrix(QQ,N,N,srange(N*N)).echelon_form()
 ....:
 sage: %time test1(20,40,10^3)
 CPU times: user 7.38 s, sys: 0.06 s, total: 7.44 s
 Wall time: 7.45 s
 }}}
 When I do nothing on top of #12313, I get
 {{{
 sage: def test1(N,B,t):
 ....:     for i in range(t):
 ....:         m=matrix(QQ,N,N,srange(N*N)).echelon_form()
 ....:
 sage: %time test1(20,40,10^3)
 CPU times: user 7.58 s, sys: 0.03 s, total: 7.60 s
 Wall time: 7.63 s
 }}}
 Again, it isn't exactly a break-through. I didn't time it pre-#12313, yet.

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