#249: a much needed preparser optimization -- factor out constants
------------------------------+---------------------------------------------
 Reporter:  was               |        Owner:  somebody  
     Type:  enhancement       |       Status:  new       
 Priority:  major             |    Milestone:  sage-3.1.3
Component:  basic arithmetic  |   Resolution:            
 Keywords:                    |  
------------------------------+---------------------------------------------
Comment (by robertwb):

 It makes even more of a difference for real numbers.

 Before

 {{{
 %time
 x = 0
 while x < 1e5:
     x += 1.5
 CPU time: 0.71 s,  Wall time: 0.73 s
 }}}

 After

 {{{
 %time
 x = 0
 while x < 1e5:
     x += 1.5
 CPU time: 0.06 s,  Wall time: 0.06 s
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/249#comment:6>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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