#4731: Repeated computation involving Maxima is getting slower and slower
-------------------------+--------------------------------------------------
 Reporter:  SimonKing    |       Owner:  mabshoff                          
     Type:  defect       |      Status:  new                               
 Priority:  major        |   Milestone:  sage-4.1.1                        
Component:  performance  |    Keywords:  maxima timing repeated computation
 Reviewer:               |      Author:                                    
   Merged:               |  
-------------------------+--------------------------------------------------

Comment(by SimonKing):

 At http://groups.google.com/group/sage-
 devel/browse_thread/thread/863e59ba164590c5 Golam Mortuza Hossain came up
 with a still much shorter code snipped that is probably related with this
 ticket:

 {{{
 sage: f(x) = function('f',x);
 sage: timeit('bool( f(x) == 0 )')
 5 loops, best of 3: 71.6 ms per loop
 sage: timeit('bool( f(x) == 0 )')
 5 loops, best of 3: 89.1 ms per loop
 sage: timeit('bool( f(x) == 0 )')
 5 loops, best of 3: 101 ms per loop
 sage: timeit('bool( f(x) == 0 )')
 5 loops, best of 3: 127 ms per loop
 sage: timeit('bool( f(x) == 0 )')
 5 loops, best of 3: 159 ms per loop
 sage: timeit('bool( f(x) == 0 )')
 5 loops, best of 3: 231 ms per loop
 sage: timeit('bool( f(x) == 0 )')
 5 loops, best of 3: 305 ms per loop
 }}}

 So, this code should be short enough to clearly point to the source of
 trouble. Maxima experts, speak up, please!

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