#11900: Serious regression caused by #9138
---------------------------+------------------------------------------------
   Reporter:  SimonKing    |          Owner:  tbd                  
       Type:  defect       |         Status:  needs_review         
   Priority:  major        |      Milestone:  sage-4.7.3           
  Component:  performance  |       Keywords:  categories regression
Work_issues:               |       Upstream:  N/A                  
   Reviewer:               |         Author:  Simon King           
     Merged:               |   Dependencies:  #9138 #11911         
---------------------------+------------------------------------------------

Comment(by SimonKing):

 This ticket is related with #11935. There, the time for creation of parent
 and element classes of categories over different base rings is avoided.
 With the patches from here and the second of the two patches from #11935
 applied to sage-4.7.2.alpha3, I find:
 {{{
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 ellbsd.sage

 real    0m4.873s
 user    0m4.408s
 sys     0m0.364s
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 ellbsd.sage

 real    0m4.957s
 user    0m4.528s
 sys     0m0.388s
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 ellbsd.sage

 real    0m4.620s
 user    0m4.288s
 sys     0m0.280s
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 ellbsd.sage

 real    0m4.615s
 user    0m4.256s
 sys     0m0.308s
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 ellbsd.sage

 real    0m4.721s
 user    0m4.344s
 sys     0m0.344s
 }}}
 and
 {{{
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 elltest1.sage

 real    0m16.435s
 user    0m16.025s
 sys     0m0.292s
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 elltest1.sage

 real    0m16.981s
 user    0m16.565s
 sys     0m0.304s
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 elltest1.sage

 real    0m16.626s
 user    0m16.173s
 sys     0m0.396s
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 elltest1.sage

 real    0m16.950s
 user    0m16.493s
 sys     0m0.384s
 king@mpc622:/mnt/local/king/SAGE/rebase/sage-4.7.2.alpha3$ time ./sage
 elltest1.sage

 real    0m16.946s
 user    0m16.461s
 sys     0m0.412s
 }}}

 The result with the first patch from #11935 (one has to pick one of the
 two patches) is similar. That shows how much speed up is still possible
 with a clever usage of categories. But the methods used there go beyond
 what I am doing here - that's why I opened a separate ticket.

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